
#include <lcio.h> int ffixed(FILE *f);
ffixed indicates whether an open file contains records of a fixed
length.
ffixed returns a nonzero value for a fixed-format file, or 0 for a
#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);
fattr
Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.