/* Copyright © Oracle Corporation 1995. All Rights Reserved. */ #ifndef SQL_LOAD_RTL_H #define SQL_LOAD_RTL_H #include /* This function is called to read a record from an open file. The contents of the record should be read by calling get_field(), below. The return value, however, is a pointer to the record. Note that the input file MUST be open. If it is not open, a message is issued and a NULL pointer is returned. A NULL pointer is also returned on EOF (without a message). */ extern char *get_line( FILE *fp); /* This function fetches a value from a record read by get_line(). The area from which the value is fetched is private to this module. The file must be open and at least one call to get_line() had to have been made. If the file is not open, a message is printed. If get_line() had not been called the value returned will be a blank string equal in size to 'count' + 1 (the \0). Note that the caller has to allocate storage for 'dest' which is equal in size to 'count' + 1. The value placed in 'dest' is padded to the size of 'count' and is NULL-terminated. */ extern void get_field( FILE *fp, char *dest, int count); #endif