MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / Free_Ctrl

Function Free_Ctrl

src/sample1d.c:99–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99static void Free_Ctrl (struct GMT_CTRL *GMT, struct SAMPLE1D_CTRL *C) { /* Deallocate control structure */
100 if (!C) return;
101 gmt_M_str_free (C->Out.file);
102 gmt_M_str_free (C->C.file);
103 gmt_M_str_free (C->C.savecpt);
104 gmt_free_array (GMT, &(C->T.T));
105 gmt_M_free (GMT, C);
106}
107
108static int usage (struct GMTAPI_CTRL *API, int level) {
109 const char *name = gmt_show_name_and_purpose (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_PURPOSE);

Callers

nothing calls this directly

Calls 1

gmt_free_arrayFunction · 0.85

Tested by

no test coverage detected