![]() Chapter Contents |
![]() Previous |
![]() Next |
| ffixed |
| Portability: | SAS/C extension |
| SYNOPSIS | |
| DESCRIPTION | |
| RETURN VALUE | |
| EXAMPLE | |
| RELATED FUNCTIONS | |
| SEE ALSO |
| SYNOPSIS |
#include <lcio.h> int ffixed(FILE *f);
| DESCRIPTION |
ffixed
indicates whether an open file contains records of a fixed length.
| RETURN VALUE |
ffixed
returns a nonzero value for a fixed-format file, or 0 for a variable-format
file. VSAM KSDS and ESDS files are considered to be variable-format files,
and RRDS and LDS files are considered to be fixed-format files. HFS files
are always considered to be variable-format files.
| EXAMPLE |
#include <lcio.h> #include <string.h> char *line; FILE *input; /* If fixed format, */ /* throw away last 8 characters; */ if (ffixed(input)) line[strlen(line) - 8 ] = 0; /* else, move string 8 bytes to left. */ else memmove(line, line + 8, strlen(line) - 7);
| RELATED FUNCTIONS |
| SEE ALSO |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.