home *** CD-ROM | disk | FTP | other *** search
- /* (c)Copyright Sequiter Software Inc., 1987-1990. All rights reserved.
-
- f4char.c
- */
-
- #include "p4misc.h"
- #include "d4base.h"
-
- #include <string.h>
-
- extern int v4cur_base ;
- extern BASE *v4base ;
-
- int f4char( long f_ref )
- {
- /* Return the first character of the record buffer. */
- return( *f4ptr(f_ref) ) ;
- }
-
- void f4r_char( long f_ref, char chr )
- {
- char *ptr ;
-
- /* Blank the record buffer and then insert the first character. */
- ptr = f4ptr(f_ref) ;
- memset( ptr, (int) ' ', (size_t) f4width(f_ref) ) ;
- *ptr = chr ;
-
- if ( v4base[v4cur_base].eof == 0 ) d4ptr()->buffer_changed = 1 ;
- }
-