🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #14602

Re: int -> string

#14602
From: Andy Georges
Date: Fri, 26 Jan 2001 08:18
39 lines
1638 bytes
Hello,

> void main(void)
> { char String[100];
>   int T=1234; strcpy(String,"Het nummer in T is: "); char Temp[10];
>   atoi(Temp,T,10); strcat(String,Temp); printf("%s",String);

heu .. atoi zet een string om in een integer. enne waar haalt uw atoi
drie argumenten vandaan?

NAME
     atoi - convert ASCII string to integer

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <stdlib.h>

     int
     atoi(const char *nptr)

DESCRIPTION
     The atoi() function converts the initial portion of the string pointed to
     by nptr to integer representation.

   <snip>


>> # Red hat Linux 7.0 --- Kernel 2.2.16-22 on i586
>>   9:12pm  up 44 min,  3 users,  load average: 0.40, 0.22, 0.12

twister:~$ uptime
   9:06am  up 218 day(s),  1:22,  2 users,  load average: 1.05, 1.02, 1.07

:-)))

mvg,
andy
Technical Details
Message-ID: <94rc5f$mfh$1@inf6serv.rug.ac.be>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!skynet.be!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!inf6serv.rug.ac.be!not-for-mail
References: <3A7088CB.83064181@wol.be> <MT0c6.256903$8r2.4824958@nlnews00.chello.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcea4,f33637d511d69c1a
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2001-01-26 00:30:03 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!skynet.be!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!inf6serv.rug.ac.be!not-for-mail
From: "Andy Georges" <andy.georges@nospam.rug.ac.be>
Newsgroups: be.comp.programming
Subject: Re: int -> string
Date: Fri, 26 Jan 2001 09:18:39 +0100
Organization: University of Ghent, Belgium
Lines: 39
Message-ID: <94rc5f$mfh$1@inf6serv.rug.ac.be>
References: <3A7088CB.83064181@wol.be> <MT0c6.256903$8r2.4824958@nlnews00.chello.com>
NNTP-Posting-Host: twizors.rug.ac.be
User-Agent: Pan/0.9.2 (Unix)
X-No-Productlinks: Yes