corrected cap.c

This commit is contained in:
ceriel 1988-06-03 09:36:08 +00:00
parent 5ce46ce603
commit a22b21016e

View file

@ -12,5 +12,7 @@
cap(u)
unsigned u;
{
if (u >= 'a' && u <= 'z') u += 'A'-'a';
register unsigned *p = &u;
if (*p >= 'a' && *p <= 'z') *p += 'A'-'a';
}