[LCP]question

Sameer Oak sameer.oak at mahindrabt.com
Tue Mar 2 16:08:02 UTC 2004


sprintf() as follows:

..
char *str;
{
 char tmp[21];
 long long dummy=1234567890;
 sprintf(tmp,"%ll",dummy);
 str=(char *)malloc(strlen(tmp)+1);
 strcpy(str,tmp);
}
..

-
sam.

-----Original Message-----
From: linuxcprogramming-admin at lists.linux.org.au
[mailto:linuxcprogramming-admin at lists.linux.org.au]On Behalf Of subin
jose
Sent: Tuesday, March 02, 2004 10:04 AM
To: linuxcprogramming at lists.linux.org.au
Subject: [LCP]question

how do you convert an integer value to a char in c?

plz help

subin

_________________________________________________________________
Easiest Money Transfer to India. Send Money To 6000 Indian Towns.
http://go.msnserver.com/IN/42198.asp Easiest Way To Send Money Home!

_______________________________________________
This is the Linux C Programming List
:  http://lists.linux.org.au/listinfo/linuxcprogramming List

*********************************************************
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*********************************************************
Visit us at http://www.mahindrabt.com






More information about the linuxCprogramming mailing list