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