2 * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
4 * Copyright (c) 1990, 1993
5 * The Regents of the University of California. All rights reserved.
7 * This code is derived from software contributed to Berkeley by
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.
16 SM_RCSID("@(#)$Id: feof.c,v 1.13 2001/09/11 04:04:48 gshapiro Exp $")
18 #include <sm/assert.h>
22 ** SM_IO_EOF -- subroutine version of the macro sm_io_eof.
24 ** Tests if the file for 'fp' has reached the end.
27 ** fp -- file pointer.
30 ** 0 (zero) when the file is not at end
31 ** non-zero when EOF has been found
39 SM_REQUIRE_ISA(fp, SmFileMagic);