Revision 19204,
968 bytes
checked in by zacheiss, 22 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r19203,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers. |
---|
3 | * All rights reserved. |
---|
4 | * Copyright (c) 1990, 1993 |
---|
5 | * The Regents of the University of California. All rights reserved. |
---|
6 | * |
---|
7 | * This code is derived from software contributed to Berkeley by |
---|
8 | * Chris Torek. |
---|
9 | * |
---|
10 | * By using this file, you agree to the terms and conditions set |
---|
11 | * forth in the LICENSE file which can be found at the top level of |
---|
12 | * the sendmail distribution. |
---|
13 | */ |
---|
14 | |
---|
15 | #include <sm/gen.h> |
---|
16 | SM_RCSID("@(#)$Id: feof.c,v 1.1.1.1 2003-04-08 15:06:04 zacheiss Exp $") |
---|
17 | #include <sm/io.h> |
---|
18 | #include <sm/assert.h> |
---|
19 | #include "local.h" |
---|
20 | |
---|
21 | /* |
---|
22 | ** SM_IO_EOF -- subroutine version of the macro sm_io_eof. |
---|
23 | ** |
---|
24 | ** Tests if the file for 'fp' has reached the end. |
---|
25 | ** |
---|
26 | ** Parameters: |
---|
27 | ** fp -- file pointer. |
---|
28 | ** |
---|
29 | ** Returns: |
---|
30 | ** 0 (zero) when the file is not at end |
---|
31 | ** non-zero when EOF has been found |
---|
32 | */ |
---|
33 | #undef sm_io_eof |
---|
34 | |
---|
35 | int |
---|
36 | sm_io_eof(fp) |
---|
37 | SM_FILE_T *fp; |
---|
38 | { |
---|
39 | SM_REQUIRE_ISA(fp, SmFileMagic); |
---|
40 | |
---|
41 | return sm_eof(fp); |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.