home *** CD-ROM | disk | FTP | other *** search
- /* (C) Copyright 1984,85,86,87 Walter L. Peacock All Rights Reserved */
- /* P U T F P A T . C 10/23/84 */
- /* put formatted patient args into record. */
- /*----------------------------------------------------------------------------
- * putfpat() is used by the demo programs to write records to the patient file
- *---------------------------------------------------------------------------*/
-
- #include "cbtree.h"
- #include "patrec.str" /* patient record structure */
-
- /* putfpat will always be opened by the calling */
- /* function and not in this function. 12/10/84 */
- void putfpat(fd, recnum, pr)
- int fd;
- long recnum; /* relative record number */
- PATREC *pr; /* pointer to patient record structure */
- {
- extern long lseek();
-
- if (btseek(fd, recnum, SZ_PATREC) == -1L)
- ckerror(- CK_SEEK, "PUTFPAT.c");
- if (write(fd, (char *)pr, SZ_PATREC) == ERR)
- ckerror(- CK_WRIT, "PUTFPAT.c: pr");
- }
-
-