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

Function PSL_fopen

src/postscriptlight.c:6217–6224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6215}
6216
6217FILE *PSL_fopen (struct PSL_CTRL *C, char *file, char *mode) {
6218 if (C->internal.fp == NULL) { /* Open the plot file unless fp already set */
6219 if ((C->internal.fp = fopen (file, mode)) == NULL) {
6220 PSL_message (C, PSL_MSG_ERROR, "PSL_fopen error: Unable to open file %s with mode %s!\n", file, mode);
6221 }
6222 }
6223 return (C->internal.fp);
6224}
6225
6226int PSL_fclose (struct PSL_CTRL *C) {
6227 /* Close except if stdout */

Callers 3

gmt_plotinitFunction · 0.85
GMT_subplotFunction · 0.85
GMT_psconvertFunction · 0.85

Calls 1

PSL_messageFunction · 0.85

Tested by

no test coverage detected