OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
pexit.c
Go to the documentation of this file.
1 /*****************************************************************
2  *
3  * print error message and exit
4  *
5  * Brian Schieber SAIC/GSC 5/93
6  *****************************************************************/
7 #include <stdio.h>
8 #include <stdlib.h>
9 
10 void pexit(char *string) {
11  printf("FATAL Error in routine... %s\n", string);
12  exit(-1);
13 }
14 
15 /*****************************************************************
16  *
17  * print warning message and return error code
18  *
19  *****************************************************************/
20 
21 int pwarning(char *string) {
22  printf("WARNING: Error in routine... %s\n", string);
23  return 0;
24 }
25 
26 
int pwarning(char *string)
Definition: pexit.c:21
void pexit(char *string)
Definition: pexit.c:10