swarm-modeling
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ANSWER: itoa()


From: Kevin S. Lim
Subject: ANSWER: itoa()
Date: Sat, 4 Dec 1999 22:36:23 -0500

Hi... after some thought I figured out that I could use sprintf() to achieve
my objective.

So if anyone else can't get itoa() to work on their system, an alternative
solution is as follows:

char suffix[32];
sprintf(suffix, "%d", 99);
strcat(prefix, suffix);

Sorry about the wasted post.

Cheers,
- Kevin

Kevin S. Lim - B.Sc.(Env) - MES Candidate
Department of Geography - University of Waterloo
www.fes.uwaterloo.ca/u/klim  ICQ#52585289




                  ==================================
   Swarm-Modelling is for discussion of Simulation and Modelling techniques
   esp. using Swarm.  For list administration needs (esp. [un]subscribing),
   please send a message to <address@hidden> with "help" in the
   body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]