static char sccsid
[] = "@(#)getcom.c 1.1 %G%";
getcom(buf
, size
, prompt
, error
)
if (fgets(buf
, size
, stdin
) == 0)
getword(buf1
, buf2
, flag
)
/* shifts to UPPERCASE if flag > 0, lowercase if */
/* flag < 0, and leaves it unchanged if flag = 0 */
while (*buf1
&& !isspace(*buf1
) && *buf1
!= ',')
*buf2
++ = shift(*buf1
++, flag
);
return (*buf1
? buf1
: 0);
return isupper(c
) ? tolower(c
) : c
;
return islower(c
) ? toupper(c
) : c
;