8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / sendmail / libsm / feof.c
blob2f1efc37d087582fa8f848616852d9f3d3d2c579
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.
7 * This code is derived from software contributed to Berkeley by
8 * Chris Torek.
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.
15 #pragma ident "%Z%%M% %I% %E% SMI"
17 #include <sm/gen.h>
18 SM_RCSID("@(#)$Id: feof.c,v 1.11 2001/04/03 01:46:40 ca Exp $")
19 #include <sm/io.h>
20 #include <sm/assert.h>
21 #include "local.h"
24 ** SM_IO_EOF -- subroutine version of the macro sm_io_eof.
26 ** Tests if the file for 'fp' has reached the end.
28 ** Parameters:
29 ** fp -- file pointer.
31 ** Returns:
32 ** 0 (zero) when the file is not at end
33 ** non-zero when EOF has been found
35 #undef sm_io_eof
37 int
38 sm_io_eof(fp)
39 SM_FILE_T *fp;
41 SM_REQUIRE_ISA(fp, SmFileMagic);
43 return sm_eof(fp);