[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

calopen

 
int calopen(char *file)
Return:

0
Success
-1
Failure: insufficient memory for calibration list
-2
Failure: unable to open calibration file

This function reads the specified calibration file (which must be located in one of the directories specified by WFDB, see section 1.4 The Database Path and Other Environment Variables) into the calibration list. If file is NULL, the file named by WFDBCAL is read. Normally, the current contents of the calibration list are discarded before reading the calibration file; if file begins with `+', however, the `+' is stripped from the file name and the contents of the file are appended to the current calibration list. If file is `-', calopen reads the standard input rather than a calibration file. (This function was first introduced in WFDB library version 6.0.)



George B. Moody (george@mit.edu)