equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * FUNCTION |
|
16 * <<feof>>---test for end of file |
|
17 * INDEX |
|
18 * feof |
|
19 * ANSI_SYNOPSIS |
|
20 * #include <stdio.h> |
|
21 * int feof(FILE *<[fp]>); |
|
22 * TRAD_SYNOPSIS |
|
23 * #include <stdio.h> |
|
24 * int feof(<[fp]>) |
|
25 * FILE *<[fp]>; |
|
26 * <<feof>> tests whether or not the end of the file identified by <[fp]> |
|
27 * has been reached. |
|
28 * RETURNS |
|
29 * <<feof>> returns <<0>> if the end of file has not yet been reached; if |
|
30 * at end of file, the result is nonzero. |
|
31 * PORTABILITY |
|
32 * <<feof>> is required by ANSI C. |
|
33 * No supporting OS subroutines are required. |
|
34 * |
|
35 * |
|
36 */ |
|
37 |
|
38 |
|
39 |
|
40 #include <stdio.h> |
|
41 #include "LOCAL.H" |
|
42 |
|
43 #undef feof |
|
44 |
|
45 /** |
|
46 Check if End Of File has been reached. |
|
47 @return A non-zero value is returned in the case that the position |
|
48 indicator reached the End Of File in the last input operation with |
|
49 the specified stream, otherwise 0 is returned. |
|
50 @param fp pointer to an open file. |
|
51 */ |
|
52 EXPORT_C int |
|
53 feof (FILE * fp) |
|
54 { |
|
55 return __sfeof (fp); |
|
56 } |