The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 10-08-2005
Registered User
 

Join Date: Oct 2005
Posts: 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
Reply With Quote
Forum Sponsor
  #2  
Old 10-10-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,274
Code:
char  *litoa(char *dest,long long src)
{
    sprintf(dest,"%ll",src);
    return dest;
}
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0