🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Convertir a Hexadecimal

#11851
From: gerard
Date: Mon, 01 Oct 2001 10:29
12 lines
1456 bytes
Hola a todos!
Como tengo que hacer para printar el c�digo hexadecimal
de un car�cter ASCII?

char c = 'A';
fprintf ( stdout ,  "%?? " , c );

El resultado deber�a ser 0x41.

Y para verlo en decimal?

Gracias! Realmente esto me confunde :)
Technical Details
Message-ID: <DAXt7.106161$Tj.3441879@telenews.teleline.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.direct.ca!look.ca!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

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,92448867788615b9,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-10-01 06:36:09 PST
From: "gerard" <gerard.farras@campus.uab.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Convertir a Hexadecimal
Lines: 17
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: <DAXt7.106161$Tj.3441879@telenews.teleline.es>
Date: Mon, 01 Oct 2001 10:29:55 GMT
NNTP-Posting-Host: 195.235.97.105
X-Complaints-To: usenet@teleline.es
X-Trace: telenews.teleline.es 1001932195 195.235.97.105 (Mon, 01 Oct 2001 12:29:55 MET DST)
NNTP-Posting-Date: Mon, 01 Oct 2001 12:29:55 MET DST
Organization: Clientes_Teleline
X-Received-Date: Mon, 01 Oct 2001 12:29:55 MET DST (telenews.teleline.es)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.direct.ca!look.ca!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