|
|
1.1 ! root 1: char * ! 2: strdup(s) ! 3: char *s; ! 4: { ! 5: char *result = (char*)malloc(strlen(s) + 1); ! 6: if (result == (char*)0) ! 7: return (char*)0; ! 8: strcpy(result, s); ! 9: return result; ! 10: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.