| 6215 | } |
| 6216 | |
| 6217 | FILE *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 | |
| 6226 | int PSL_fclose (struct PSL_CTRL *C) { |
| 6227 | /* Close except if stdout */ |
no test coverage detected