corrected cap.c
This commit is contained in:
parent
5ce46ce603
commit
a22b21016e
1 changed files with 3 additions and 1 deletions
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue