| Precedente :: Successivo |
Autore |
Messaggio |
|
|
cali1981 Site Admin
Registrato: 16/01/06 22:01 Messaggi: 827
|
Inviato: Ven Feb 23, 2007 9:59 am Oggetto: Atoi, atol and 64 bit int (int64) Win and Linux |
|
|
In one of my programs, I had to convert a string containing a 64 bit integer to the actual int64 value. So I found out a solution I wanted to share with you.
Under Windows you can use the atoi64 API. The signature is:
_int64 _atoi64(
const char *string
);
If you need this under Linux you can use:
long long atoll(
const char *string
);
Hope this helps! _________________ Visita anche il sito Agriturismo Umbria per maggiori informazioni sull'Umbria!
Realizzazione siti web e applicazioni ASp.NEt, C/C++, C# |
|
Top |
|
 |
|
|
|
|
Non puoi inserire nuovi argomenti Non puoi rispondere a nessun argomento Non puoi modificare i tuoi messaggi Non puoi cancellare i tuoi messaggi Non puoi votare nei sondaggi
|
|