os/ossrv/genericopenlibs/cstdlib/LSTDIO/FEOF.C
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/genericopenlibs/cstdlib/LSTDIO/FEOF.C	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,56 @@
     1.4 +/*
     1.5 +* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:
    1.18 +* FUNCTION
    1.19 +* <<feof>>---test for end of file
    1.20 +* INDEX
    1.21 +* feof
    1.22 +* ANSI_SYNOPSIS
    1.23 +* #include <stdio.h>
    1.24 +* int feof(FILE *<[fp]>);
    1.25 +* TRAD_SYNOPSIS
    1.26 +* #include <stdio.h>
    1.27 +* int feof(<[fp]>)
    1.28 +* FILE *<[fp]>;
    1.29 +* <<feof>> tests whether or not the end of the file identified by <[fp]>
    1.30 +* has been reached.
    1.31 +* RETURNS
    1.32 +* <<feof>> returns <<0>> if the end of file has not yet been reached; if
    1.33 +* at end of file, the result is nonzero.
    1.34 +* PORTABILITY
    1.35 +* <<feof>> is required by ANSI C.
    1.36 +* No supporting OS subroutines are required.
    1.37 +* 
    1.38 +*
    1.39 +*/
    1.40 +
    1.41 +
    1.42 +
    1.43 +#include <stdio.h>
    1.44 +#include "LOCAL.H"
    1.45 +
    1.46 +#undef feof
    1.47 +
    1.48 +/**
    1.49 +Check if End Of File has been reached.
    1.50 +@return A non-zero value is returned in the case that the position
    1.51 +indicator reached the End Of File in the last input operation with
    1.52 +the specified stream, otherwise 0 is returned.
    1.53 +@param fp pointer to an open file.
    1.54 +*/
    1.55 +EXPORT_C int 
    1.56 +feof (FILE * fp)
    1.57 +{
    1.58 +  return __sfeof (fp);
    1.59 +}