Death talks in CAPITAL LETTERS

This commit is contained in:
Pasi Kallinen
2015-03-15 09:53:34 +02:00
parent f799bffbb2
commit 3bbbb01c53
3 changed files with 22 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ NetHack, except that rounddiv may call panic().
char highc (char)
char lowc (char)
char * lcase (char *)
char * ucase (char *)
char * upstart (char *)
char * mungspaces (char *)
char * eos (char *)
@@ -99,6 +100,17 @@ lcase(s) /* convert a string into all lowercase */
return s;
}
char *
ucase(s) /* convert a string into all uppercase */
char *s;
{
register char *p;
for (p = s; *p; p++)
if ('a' <= *p && *p <= 'z') *p &= ~040;
return s;
}
char *
upstart(s) /* convert first character of a string to uppercase */
char *s;