swarm-modeling
[Top][All Lists]
Advanced

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

Q: <stdlib.h> itoa()


From: Kevin S. Lim
Subject: Q: <stdlib.h> itoa()
Date: Sat, 4 Dec 1999 22:13:28 -0500

I'm trying to use the itoa() function to convert an integer value into a
string.  I want to generate an output file for each agent and hence I want
to concatenate [strcat()] a prefix name with the agent's id number, hence
the conversion.

When I compile the code, I get an error message of an "implicit declaration
of function 'itoa'".  From experience, this error/warning message means that
an header file has not been called.  However, in my case, I've included the
<stdlib.h> file, so I'm stumped yet again why this message pops up.

Any suggestions from anyone would be welcomed.

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]