🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #3664

binary string als int afdrukken in C

#3664
From: Gunter Schelfhout
Date: Sat, 29 Nov 2003 13:32
7 lines
1290 bytes
Hoe kan een string (bv "1100100101001001") afdrukken als een int in C met
behulp van de functies in glibc?
Met printf?
Of bestaat daar een functie voor die decimale waarden omzet in binaire en
vice versa?
-- 
Blood, sweat & tears
Technical Details
Message-ID: <td1yb.50435$xX1.1629315@phobos.telenet-ops.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!mephistopheles.news.clara.net!news.clara.net!easynet-monga!easynet.net!feed1.news.be.easynet.net!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,12763d3d6faef1bf,start
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2003-11-29 05:32:09 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!mephistopheles.news.clara.net!news.clara.net!easynet-monga!easynet.net!feed1.news.be.easynet.net!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
From: Gunter Schelfhout <nospam@please.com>
Subject: binary string als int afdrukken in C
Newsgroups: be.comp.programming
Lines: 7
User-Agent: KNode/0.7.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Message-ID: <td1yb.50435$xX1.1629315@phobos.telenet-ops.be>
Date: Sat, 29 Nov 2003 13:32:09 GMT
NNTP-Posting-Host: 213.118.155.190
X-Complaints-To: abuse@telenet.be
X-Trace: phobos.telenet-ops.be 1070112729 213.118.155.190 (Sat, 29 Nov 2003 14:32:09 MET)
NNTP-Posting-Date: Sat, 29 Nov 2003 14:32:09 MET
Organization: Telenet Internet