Ice Sheet System Model  4.18
Code documentation
pfclose.cpp
Go to the documentation of this file.
1 
5 #ifdef HAVE_CONFIG_H
6  #include <config.h>
7 #else
8 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
9 #endif
10 
11 #include <stdio.h>
12 #include "../../shared.h"
13 
14 void pfclose(FILE* fid,char* filename){
15 
16  /*Close file handle: */
17  _assert_(fid);
18  if(fclose(fid)!=0)_error_("could not close file " << filename);
19 }
_assert_
#define _assert_(ignore)
Definition: exceptions.h:37
pfclose
void pfclose(FILE *fid, char *filename)
Definition: pfclose.cpp:14
_error_
#define _error_(StreamArgs)
Definition: exceptions.h:49