- Main Page
- Classes
- Files
- Related Pages

# string.h

    00001
    00002 #ifndef _util_misc_string_h
    00003 #define _util_misc_string_h
    00004
    00005 #include <string.h>
    00006 #include <stdlib.h>
    00007
    00008 namespace sc {
    00009
    00010 inline char *
    00011 strdup (const char *string)
    00012 {
    00013   return string ? strcpy ((char *) malloc (strlen (string) + 1), string) : 0;
    00014 }
    00015
    00016 }
    00017
    00018 #endif