URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 1010 |
Rev 1765 |
/*
|
/*
|
FUNCTION
|
FUNCTION
|
<<feof>>---test for end of file
|
<<feof>>---test for end of file
|
|
|
INDEX
|
INDEX
|
feof
|
feof
|
|
|
ANSI_SYNOPSIS
|
ANSI_SYNOPSIS
|
#include <stdio.h>
|
#include <stdio.h>
|
int feof(FILE *<[fp]>);
|
int feof(FILE *<[fp]>);
|
|
|
TRAD_SYNOPSIS
|
TRAD_SYNOPSIS
|
#include <stdio.h>
|
#include <stdio.h>
|
int feof(<[fp]>)
|
int feof(<[fp]>)
|
FILE *<[fp]>;
|
FILE *<[fp]>;
|
|
|
DESCRIPTION
|
DESCRIPTION
|
<<feof>> tests whether or not the end of the file identified by <[fp]>
|
<<feof>> tests whether or not the end of the file identified by <[fp]>
|
has been reached.
|
has been reached.
|
|
|
RETURNS
|
RETURNS
|
<<feof>> returns <<0>> if the end of file has not yet been reached; if
|
<<feof>> returns <<0>> if the end of file has not yet been reached; if
|
at end of file, the result is nonzero.
|
at end of file, the result is nonzero.
|
|
|
PORTABILITY
|
PORTABILITY
|
<<feof>> is required by ANSI C.
|
<<feof>> is required by ANSI C.
|
|
|
No supporting OS subroutines are required.
|
No supporting OS subroutines are required.
|
*/
|
*/
|
|
|
#include <stdio.h>
|
#include <stdio.h>
|
|
|
#undef feof
|
#undef feof
|
|
|
int
|
int
|
_DEFUN (feof, (fp),
|
_DEFUN (feof, (fp),
|
FILE * fp)
|
FILE * fp)
|
{
|
{
|
return __sfeof (fp);
|
return __sfeof (fp);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.