search for: r_dir_separ

Displaying 1 result from an estimated 1 matches for "r_dir_separ".

2001 May 13
1
Dynamic C Symbols and Embedding Suggestion
...ot;); return 0; } dpath = malloc(strlen(path)+1); if(dpath == NULL) { strcpy(DLLerror,"Couldn't allocate space for 'path'"); return 0; } strcpy(dpath, path); if(R_osDynSymbol->fixPath) R_osDynSymbol->fixPath(dpath); p = strrchr(dpath, R_DIR_SEPARATOR); if(!p) p = dpath; else p++; strcpy(DLLname, p); p = strchr(DLLname, '.'); if(p) *p = '\0'; name = malloc(strlen(DLLname)+1); if(name == NULL) { strcpy(DLLerror,"Couldn't allocate space for 'name'"); free(dpath); return 0; }...