numbers.c

ds2.1.1/lib/secure/sefun/numbers.c · 272 B

From the archive ds2.1.1.zip

Download the archive   « Back to the archive contents

int bool_reverse(mixed arg){
    if(!arg || (intp(arg) && arg < 1)) return 1;
    else return 0;
}

int atoi(string str){
    int integer;
    if(!str) return 0;
    if(!sscanf(str, "%d", integer)) return 0;
    return integer;
}

string itoa(int i){
    return ""+i;
}

Site Stats

Snippets: 1791
Codebases: 571