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

Function selection_clone

src/selvar.c:64–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64struct selectionvar *
65selection_clone(struct selectionvar *sel)
66{
67 struct selectionvar *tmps = (struct selectionvar *) alloc(sizeof *tmps);
68
69 *tmps = *sel;
70 tmps->map = dupstr(sel->map);
71
72 return tmps;
73}
74
75/* get boundary rect of selection sel into b */
76void

Callers 2

generate_way_out_methodFunction · 0.85
lspo_regionFunction · 0.85

Calls 2

dupstrFunction · 0.85
allocFunction · 0.70

Tested by

no test coverage detected