MCPcopy Create free account
hub / github.com/aldostools/webMAN-MOD / add_radio_button

Function add_radio_button

include/init/html.h:347–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347static size_t add_radio_button(const char *name, int value, const char *id, const char *label, const char *sufix, bool checked, char *buffer)
348{
349 if(!buffer || !label) return 0;
350
351 char html[MAX_LINE_LEN];
352 sprintf(html, "<label><input type=\"radio\" name=\"%s\" value=\"%i\" id=\"%s\"%s/> %s%s</label>",
353 name, value, id,
354 checked ? ITEM_CHECKED : "",
355 label, (sufix) ? sufix : "<br>");
356 return concat(buffer, html);
357}
358
359static size_t add_check_box(const char *name, bool disabled, const char *label, const char *sufix, bool checked, char *buffer)
360{

Callers 2

setup_formFunction · 0.85
ps3mapi_syscall8Function · 0.85

Calls 2

concatFunction · 0.85
sprintfFunction · 0.50

Tested by

no test coverage detected