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

newheader

 
int newheader(char *record)
Return:

0
Success
-1
Failure: unable to create header file

This function creates a `hea' file (in the current directory, unless record includes path information). Use newheader just after you have finished writing the signal files, but before calling wfdbquit. If record begins with `+', the `+' is discarded and the remainder of record is taken as the record name. Otherwise, all of record (excluding any path information) is taken to be the record name. If the record name is `-', the header file is written to the standard output. Record names may include letters in lower or upper case, digits, and underscores (`_'); they may not include any other characters. If record does not conform to these requirements, newheader will return -1; see section Example 8: Creating a New Database Record, for an illustration of the use of newheader to check the validity of a record name. For compatibility with the widest range of operating systems, keep record names short (6 characters or less) and avoid those that are distinguished by case alone. To avoid confusion with MIT DB and AHA DB records, do not use three- or four-digit record names.



George B. Moody (george@mit.edu)