![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to replace any char with newline char. | mightysam | Shell Programming and Scripting | 5 | 09-18-2008 05:15 PM |
| char c = 882 | useless79 | High Level Programming | 1 | 07-30-2007 02:16 AM |
| char *p and char p[]. | arunviswanath | High Level Programming | 4 | 07-19-2006 11:11 PM |
| get the last 2 char from a variable | tads98 | Shell Programming and Scripting | 5 | 10-12-2005 08:45 PM |
| \n char in C | C|[anti-trust] | High Level Programming | 1 | 05-05-2005 03:15 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
char to int64 conversion
Hi, I'm converting a C program that I made using the Visual Studio. I now use GCC (over Linux) and can't find some equivalences. I changed my __int64 definitions to unsigned long long, but can't find an equivalent to the microsoft i64toa() function, which let you convert a char* to a 64 bit integer.
Thanks |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Code:
char *litoa(char *dest,long long src)
{
sprintf(dest,"%ll",src);
return dest;
}
|
|||
| Google The UNIX and Linux Forums |