version 1.74, 2010/04/21 11:29:59 |
version 1.75, 2010/04/24 22:02:14 |
|
|
|
|
case 'g': /* grep command name */ |
case 'g': /* grep command name */ |
free(ps.command); |
free(ps.command); |
if((ps.command = strdup(optarg)) == NULL); |
if ((ps.command = strdup(optarg)) == NULL) |
err(1, NULL); |
err(1, NULL); |
break; |
break; |
|
|
|
|
tempbuf[1] == '\0') |
tempbuf[1] == '\0') |
ps.command = NULL; |
ps.command = NULL; |
else |
else |
if((ps.command = strdup(tempbuf)) == |
if ((ps.command = strdup(tempbuf)) == |
NULL); |
NULL) |
err(1, NULL); |
err(1, NULL); |
putr(); |
putr(); |
} else |
} else |