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

Function GetDialogResponse

win/X11/dialogs.c:247–258  ·  view source on GitHub ↗

get what the user typed; caller must free the response */

Source from the content-addressed store, hash-verified

245
246/* get what the user typed; caller must free the response */
247String
248GetDialogResponse(Widget w)
249{
250 Arg args[1];
251 Widget response;
252 String s;
253
254 response = XtNameToWidget(w, "response");
255 XtSetArg(args[0], nhStr(XtNstring), &s);
256 XtGetValues(response, args, ONE);
257 return XtNewString(s);
258}
259
260/* set the default response */
261void

Callers 2

askname_doneFunction · 0.85
done_buttonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected