Lines Matching refs:cmdname
71 char* cmdname; in main() local
242 cmdname = createCommandName( argv[0] ); in main()
243 argv[0] = cmdname; in main()
249 execvp( cmdname, argv ); in main()
290 char* cmdname = NULL; in createCommandName() local
313 cmdname = (char*) malloc( strlen( prgname ) + strlen( CMDPREFIX ) + 1 ); in createCommandName()
318 strncpy( cmdname, prgname, pos ); in createCommandName()
319 cmdname[ pos ] = '\0'; in createCommandName()
320 strcat( cmdname, CMDPREFIX ); in createCommandName()
321 strcat( cmdname, sep ); in createCommandName()
325 strcpy( cmdname, CMDPREFIX ); in createCommandName()
326 strcat( cmdname, prgname ); in createCommandName()
330 return cmdname; in createCommandName()