Help for this page

Select Code to Download


  1. or download this
    char* my_crappy_strdup( const char* str ) {
       char* s = malloc(strlen(str)+1);
       memcpy( s, str, strlen(str)+1 );
       return s;
    }
    
  2. or download this
    void my_crappy_free( char* str ) {
       free(s);
    }