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

Function copy_of

win/X11/winmenu.c:1154–1160  ·  view source on GitHub ↗

* Allocate a copy of the given string. If null, return a string of * zero length. */

Source from the content-addressed store, hash-verified

1152 * zero length.
1153 */
1154static char *
1155copy_of(const char *s)
1156{
1157 if (!s)
1158 s = "";
1159 return dupstr(s);
1160}
1161
1162/*
1163 * Create ok, cancel, all, none, invert, and search buttons.

Callers 4

X11_add_menuFunction · 0.85
X11_end_menuFunction · 0.85
X11_select_menuFunction · 0.85
Gem_add_menuFunction · 0.85

Calls 1

dupstrFunction · 0.85

Tested by

no test coverage detected