[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

RE: [CPROG] Konvertera intar.



Tack så mycket !

Detta löste mitt problem..

Hade satt mig ner och funderat på en algoritm för att lösa det,
men det slipper jag nu.

/Jocke!

PS. Sorry för dubbelpostningen. Trodde inte att sslug@sslug fungerade som mailadress.

-----Original Message-----
From: Mads Bondo Dydensborg [mailto:sslug@sslug
Sent: Wednesday, January 19, 2000 1:18 PM
To: 'sslug@sslug'
Subject: Re: [CPROG] Konvertera intar.


On Wed, 19 Jan 2000, Joachim Holst (QCS) wrote:

> Hejsan !
> 
> Sitter och behöver konvertera en int till en sträng.
> 
> Tyvärr, så finns visst inte itoa funktionen i Linux så jag måste väl skriva en egen.
> Någon som har exempel på hur man gör ??
> 
> Står helt still i min skalle...

Check sprinft

noget i den her stil:

char buf[512];
sprintf(buf, "%i", 42);

Mads

-- 
Mads Bondo Dydensborg.                               sslug@sslug
The point is to decide what your needs are, pick an editor that looks like
it may fit them and then MASTER it. Learn every little nuance and key
stroke. Not just the easy stuff you pick up in an hour or two but especially
the obscure stuff. Learn it so well that your mind can stay about two steps
ahead of hands even when using the arcane commands and keystrokes. Then you
can edit in front of crowds and people will ohh and awe. Source code will
fear you. Project managers will want you. 
                                        - Dana S. Wheeler, M.D. on emacs/vi




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *