Searched refs:prgname (Results 1 – 1 of 1) sorted by relevance
288 const char* prgname = NULL; in createCommandName() local296 prgname = argv0; in createCommandName()307 prgname = dl_info.dli_fname; in createCommandName()311 if ( prgname != NULL ) in createCommandName()313 cmdname = (char*) malloc( strlen( prgname ) + strlen( CMDPREFIX ) + 1 ); in createCommandName()314 sep = strrchr( prgname, SEPARATOR ); in createCommandName()317 pos = ++sep - prgname; in createCommandName()318 strncpy( cmdname, prgname, pos ); in createCommandName()326 strcat( cmdname, prgname ); in createCommandName()
Completed in 29 milliseconds