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: get.c,v 1.18 2001/09/11 04:04:48 gshapiro Exp $")
18 #include <sm/assert.h>
22 ** SM_IO_GETC -- get a character from a file
25 ** fp -- the file to get the character from
26 ** timeout -- time to complete getc
29 ** Success: the value of the character read.
32 ** This is a function version of the macro (in <sm/io.h>).
33 ** It is guarded with locks (which are currently not functional)
34 ** for multi-threaded programs.
40 sm_io_getc(fp
, timeout
)
41 register SM_FILE_T
*fp
;
44 SM_REQUIRE_ISA(fp
, SmFileMagic
);
45 return sm_getc(fp
, timeout
);