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

Function gmtinit_free_plot_array

src/gmt_init.c:3702–3709  ·  view source on GitHub ↗

! . */

Source from the content-addressed store, hash-verified

3700
3701/*! . */
3702GMT_LOCAL void gmtinit_free_plot_array (struct GMT_CTRL *GMT) {
3703 if (GMT->current.plot.n_alloc) {
3704 gmt_M_free (GMT, GMT->current.plot.x);
3705 gmt_M_free (GMT, GMT->current.plot.y);
3706 gmt_M_free (GMT, GMT->current.plot.pen);
3707 }
3708 GMT->current.plot.n = GMT->current.plot.n_alloc = 0;
3709}
3710
3711GMT_LOCAL void gmtinit_trim_off_any_slash_at_end (char *dir) {
3712 size_t L = strlen (dir); /* Get length of dir */

Callers 1

gmt_end_moduleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected