🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #1334

Re: omzetten van integer naar char

#1334
From: Philip Paeps
Date: Thu, 26 May 2005 12:55
22 lines
2012 bytes
Rik <sospiri@hotmail.be> wrote:
> De taal die ik gebruik is C.

Fijn :-)

> Die 1 is een integer waarde .
> Dit is voor omzetting van binair naar decimaal....de 1 is gewoon de rest
> door deling, en die wil ik wegschrijven naar een string.  De 0x30 is
> hexadecimaal voor 0, als ik dus 1+ 0x30 in de array schrijf ( char array )
> krijg ik dan 1 , niet als integer? 

Ik denk dat je het wiel opnieuw aan't uitvinden bent.  Lees even je manual
door over sprintf(3) en snprintf(3).  Vermoedelijk doen die wat je wil.

 - Philip

-- 
Philip Paeps                              Please don't email any replies
philip@paeps.cx                               I follow the newsgroup.

  Whenever you cut your fingernails you will find a
  need for them an hour later.
Technical Details
Message-ID: <slrnd9bhqp.m2.philip+usenet@fasolt.home.paeps.cx>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!bigfeed2.bellsouth.net!news.bellsouth.net!hwmnpeer01.lga!hwmedia!hwmnpeer01.ams!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
References: <hpmdndIYErxoVQnfRVnytg@scarlet.biz> <slrnd99v8t.m2.philip+usenet@fasolt.home.paeps.cx> <_e2dndyubqUQXwjfRVnyvg@scarlet.biz>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,c59addd1ec4c7578
X-Google-Attributes: gidfcea4,public
X-Google-Language: DUTCH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!bigfeed2.bellsouth.net!news.bellsouth.net!hwmnpeer01.lga!hwmedia!hwmnpeer01.ams!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
Newsgroups: be.comp.programming
From: Philip Paeps <philip+usenet@paeps.cx>
Subject: Re: omzetten van integer naar char
References: <hpmdndIYErxoVQnfRVnytg@scarlet.biz> <slrnd99v8t.m2.philip+usenet@fasolt.home.paeps.cx> <_e2dndyubqUQXwjfRVnyvg@scarlet.biz>
Organization: Happily Disorganized
X-PGP-Fingerprint: FA74 3C27 91A6 79D5 F6D3  FC53 BF4B D0E6 049D B879
X-Date-in-Rome: ante diem VII Kalendas Iunias MMDCCLVIII ab Urbe Condida
Message-ID: <slrnd9bhqp.m2.philip+usenet@fasolt.home.paeps.cx>
User-Agent: slrn/0.9.8.1 (FreeBSD)
Lines: 22
Date: Thu, 26 May 2005 12:55:53 GMT
NNTP-Posting-Host: 213.118.102.166
X-Complaints-To: abuse@telenet.be
X-Trace: phobos.telenet-ops.be 1117112153 213.118.102.166 (Thu, 26 May 2005 14:55:53 MEST)
NNTP-Posting-Date: Thu, 26 May 2005 14:55:53 MEST