MCPcopy Create free account
hub / github.com/Kitware/CMake / new_form

Function new_form

Source/CursesDialog/form/frm_def.c:276–296  ·  view source on GitHub ↗

--------------------------------------------------------------------------- | Facility : libnform | Function : FORM *new_form( FIELD **fields ) | | Description : Create new form with given array of fields. | | Return Values : Pointer to form. NULL if error occurred. +--------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

274|
275| Return Values : Pointer to form. NULL if error occurred.
276+--------------------------------------------------------------------------*/
277FORM *new_form(FIELD ** fields)
278{
279 int err = E_SYSTEM_ERROR;
280
281 FORM *form = (FORM *)malloc(sizeof(FORM));
282
283 if (form)
284 {
285 *form = *_nc_Default_Form;
286 if ((err=Associate_Fields(form,fields))!=E_OK)
287 {
288 free_form(form);
289 form = (FORM *)0;
290 }
291 }
292
293 if (!form)
294 SET_ERROR(err);
295
296 return(form);
297}
298
299/*---------------------------------------------------------------------------

Callers 2

RenderMethod · 0.85
RenderMethod · 0.85

Calls 2

Associate_FieldsFunction · 0.85
free_formFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…