Logo Search packages:      
Sourcecode: icu version File versions  Download package

U_STABLE UBool U_EXPORT2 u_feof ( UFILE f  ) 

Tests if the UFILE is at the end of the file stream.

Parameters:
f The UFILE from which to read.
Returns:
Returns TRUE after the first read operation that attempts to read past the end of the file. It returns FALSE if the current position is not end of file. ICU 3.0

Definition at line 187 of file ufile.c.

References NULL, and TRUE.

{
    UBool endOfBuffer;
    if (f == NULL) {
        return TRUE;
    }
    endOfBuffer = (UBool)(f->str.fPos >= f->str.fLimit);
    if (f->fFile != NULL) {
        return endOfBuffer && feof(f->fFile);
    }
    return endOfBuffer;
}


Generated by  Doxygen 1.6.0   Back to index