Lines Matching defs:arg
6048 static BOOL splitarg(char **split, const char *arg)
6059 withvol = arg[0] && (arg[1] == ':');
6061 withfullpath = (arg[2] == '/') || (arg[2] == '\\');
6063 withfullpath = (arg[0] == '/') || (arg[0] == '\\');
6069 if (withvol && !withfullpath && arg[2]
6070 && ((arg[0] ^ curdir[0]) & 0x3f)) {
6071 fprintf(stderr,"%c: is not the current drive,\n",arg[0]);
6074 if (withvol && !withfullpath && !arg[2]
6075 && ((arg[0] ^ curdir[0]) & 0x3f)) {
6083 volume[0] = arg[0];
6088 filename = (char*)malloc(strlen(arg) + lthd + 2);
6092 strcpy(filename, &arg[2]);
6094 strcpy(filename, arg);
6100 strcat(filename, &arg[2]);
6102 strcat(filename, arg);
6109 fprintf(stderr,"Bad path %s\n", arg);