diff -r 000000000000 -r e4d67989cc36 genericopenlibs/cstdlib/LSTDIO/FEOF.C --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/genericopenlibs/cstdlib/LSTDIO/FEOF.C Tue Feb 02 02:01:42 2010 +0200 @@ -0,0 +1,56 @@ +/* +* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* FUNCTION +* <>---test for end of file +* INDEX +* feof +* ANSI_SYNOPSIS +* #include +* int feof(FILE *<[fp]>); +* TRAD_SYNOPSIS +* #include +* int feof(<[fp]>) +* FILE *<[fp]>; +* <> tests whether or not the end of the file identified by <[fp]> +* has been reached. +* RETURNS +* <> returns <<0>> if the end of file has not yet been reached; if +* at end of file, the result is nonzero. +* PORTABILITY +* <> is required by ANSI C. +* No supporting OS subroutines are required. +* +* +*/ + + + +#include +#include "LOCAL.H" + +#undef feof + +/** +Check if End Of File has been reached. +@return A non-zero value is returned in the case that the position +indicator reached the End Of File in the last input operation with +the specified stream, otherwise 0 is returned. +@param fp pointer to an open file. +*/ +EXPORT_C int +feof (FILE * fp) +{ + return __sfeof (fp); +}