MCPcopy Index your code
hub / github.com/NetHack/NetHack / lcase

Function lcase

src/hacklib.c:89–98  ·  view source on GitHub ↗

convert a string into all lowercase */

Source from the content-addressed store, hash-verified

87
88/* convert a string into all lowercase */
89char *
90lcase(char *s)
91{
92 char *p;
93
94 for (p = s; *p; p++)
95 if ('A' <= *p && *p <= 'Z')
96 *p |= 040;
97 return s;
98}
99
100/* convert a string into all uppercase */
101char *

Callers 7

curses_choose_characterFunction · 0.85
whoamiFunction · 0.85
do_name.cFile · 0.85
trapnameFunction · 0.85
checkfileFunction · 0.85
weapon_insightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected