atoi.c
tmi2_fluffos_v2/lib/adm/simul_efun/atoi.c · 218 B
From the archive tmi2_fluffos_v2.zip
Download the archive « Back to the archive contents
// atoi.c
// Written by Watcher@TMI (09/26/92)
//
// Convert a numerical string into its integer form
int atoi(string str) {
int num;
if(!str || sscanf(str, "%d", num) != 1) return 0;
return num; }