Toggle navigation
Ocean Color Science Software
Jump to content
ocssw
V2022
web
ocssw
ocssw_src
src
auto_qc
metqc
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
void
pwarning
(
char
*
string
) {
22
printf(
"WARNING: Error in routine... %s\n"
,
string
);
23
}
24
25
pwarning
int pwarning(char *string)
Definition:
pexit.c:21
pexit
void pexit(char *string)
Definition:
pexit.c:10