🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #11853

Re: Convertir a Hexadecimal

#11853
From: gerard
Date: Mon, 01 Oct 2001 11:11
23 lines
1836 bytes
Creo que me respondo a m� mismo....

"gerard" <gerard.farras@campus.uab.es> escribi� en el mensaje
news:DAXt7.106161$Tj.3441879@telenews.teleline.es...
> Hola a todos!
> Como tengo que hacer para printar el c�digo hexadecimal
> de un car�cter ASCII?
>
> char c = 'A';
> fprintf ( stdout ,  "%?? " , c );

    fprintf ( stdout , "%x" , c );
>
> El resultado deber�a ser 0x41.
>
> Y para verlo en decimal?

   fprintf ( stdout , "%d" , c );

>
> Gracias! Realmente esto me confunde :)
>
     Solucionado!
Technical Details
Message-ID: <QbYt7.106528$Tj.3443499@telenews.teleline.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sunqbc.risq.qc.ca!cpk-news-hub1.bbnplanet.com!news.gtei.net!dca6-feed1.news.digex.net!sfo2-feed1.news.digex.net!intermedia!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!caladan.arrakis.es!telenews.teleline.es!not-for-mail
References: <DAXt7.106161$Tj.3441879@telenews.teleline.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,92448867788615b9
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-10-01 08:56:37 PST
From: "gerard" <gerard.farras@campus.uab.es>
Newsgroups: es.comp.os.linux.programacion
References: <DAXt7.106161$Tj.3441879@telenews.teleline.es>
Subject: Re: Convertir a Hexadecimal
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
Message-ID: <QbYt7.106528$Tj.3443499@telenews.teleline.es>
Date: Mon, 01 Oct 2001 11:11:44 GMT
NNTP-Posting-Host: 195.235.97.105
X-Complaints-To: usenet@teleline.es
X-Trace: telenews.teleline.es 1001934704 195.235.97.105 (Mon, 01 Oct 2001 13:11:44 MET DST)
NNTP-Posting-Date: Mon, 01 Oct 2001 13:11:44 MET DST
Organization: Clientes_Teleline
X-Received-Date: Mon, 01 Oct 2001 13:11:45 MET DST (telenews.teleline.es)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sunqbc.risq.qc.ca!cpk-news-hub1.bbnplanet.com!news.gtei.net!dca6-feed1.news.digex.net!sfo2-feed1.news.digex.net!intermedia!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!caladan.arrakis.es!telenews.teleline.es!not-for-mail