Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NetHack/NetHack
/ curses_copy_of
Function
curses_copy_of
win/curses/cursmisc.c:236–242 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
234
*/
235
236
char *
237
curses_copy_of(const char *s)
238
{
239
if (!s)
240
s =
""
;
241
return dupstr(s);
242
}
243
244
245
/* Determine the number of lines needed for a string for a dialog window
Callers
4
curses_break_str
Function · 0.85
curses_str_remainder
Function · 0.85
curs_new_menu_item
Function · 0.85
curses_finalize_nhmenu
Function · 0.85
Calls
1
dupstr
Function · 0.85
Tested by
no test coverage detected