static char SccsId
[] = "@(#)util.c 3.2 %G%";
** STRIPQUOTES -- Strip quotes & quote bits from a string.
** Runs through a string and strips off unquoted quote
** characters and quote bits. This is done in place.
** s -- the string to strip.
for (p
= q
= s
; (c
= *p
++) != '\0'; )
** CAPITALIZE -- return a copy of a string, properly capitalized.
** s -- the string to capitalize.
** a pointer to a properly capitalized string.
while (!isalpha(*s
) && *s
!= '\0')
** XALLOC -- Allocate memory and bitch wildly on failure.
** THIS IS A CLUDGE. This should be made to give a proper
** error -- but after all, what can we do?
** sz -- size of area to allocate.
** pointer to data region.
register unsigned int sz
;
syserr("Out of memory!!");
** NEWSTR -- make copy of string.
** Space is allocated for it using xalloc.
** pointer to new string.
p
= xalloc(strlen(s
) + 1);