Return to get_names.c CVS log | Up to [local] / src / usr.bin / talk |
version 1.13, 2003/07/10 00:06:51 | version 1.14, 2003/10/01 06:32:44 | ||
---|---|---|---|
|
|
||
my_machine_name = hostname; | my_machine_name = hostname; | ||
/* check for, and strip out, the machine name of the target */ | /* check for, and strip out, the machine name of the target */ | ||
names = strdup(argv[1]); | names = strdup(argv[1]); | ||
if (names == NULL) | |||
errx(1, "out of memory"); | |||
for (cp = names; *cp && !strchr("@:!.", *cp); cp++) | for (cp = names; *cp && !strchr("@:!.", *cp); cp++) | ||
; | ; | ||
if (*cp == '\0') { | if (*cp == '\0') { |