MCPcopy Create free account
hub / github.com/NetHack/NetHack / ucase

Function ucase

src/hacklib.c:101–110  ·  view source on GitHub ↗

convert a string into all uppercase */

Source from the content-addressed store, hash-verified

99
100/* convert a string into all uppercase */
101char *
102ucase(char *s)
103{
104 char *p;
105
106 for (p = s; *p; p++)
107 if ('a' <= *p && *p <= 'z')
108 *p &= ~040;
109 return s;
110}
111
112/* convert first character of a string to uppercase */
113char *

Callers 1

domonnoiseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected