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

Function gmtlib_duplicate_ps

src/gmt_plot.c:10845–10851  ·  view source on GitHub ↗

! . */

Source from the content-addressed store, hash-verified

10843
10844/*! . */
10845struct GMT_POSTSCRIPT * gmtlib_duplicate_ps (struct GMT_CTRL *GMT, struct GMT_POSTSCRIPT *P_from, unsigned int mode) {
10846 /* Duplicates a GMT_POSTSCRIPT structure. Mode not used yet */
10847 struct GMT_POSTSCRIPT *P = gmtlib_create_ps (GMT, P_from->n_bytes);
10848 gmt_M_unused(mode);
10849 gmtplot_copy_ps (GMT, P, P_from);
10850 return (P);
10851}
10852
10853struct GMT_POSTSCRIPT * gmt_get_postscript (struct GMT_CTRL *GMT) {
10854 struct GMT_POSTSCRIPT *P = NULL;

Callers 1

GMT_Duplicate_DataFunction · 0.85

Calls 2

gmtlib_create_psFunction · 0.85
gmtplot_copy_psFunction · 0.85

Tested by

no test coverage detected