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 #pragma ident "%Z%%M% %I% %E% SMI"
16
17 #include <sm/gen.h>
18 SM_RCSID("@(#)$Id: sscanf.c,v 1.25 2002/02/01 02:28:00 ca Exp $")
19 #include <string.h>
20 #include <sm/varargs.h>
21 #include <sm/io.h>
22 #include "local.h"
23
24 /*
25 ** SM_EOFREAD -- dummy read function for faked file below
26 **
27 ** Parameters:
28 ** fp -- file pointer
29 ** buf -- location to place read data
30 ** len -- number of bytes to read
31 **
32 ** Returns:
33 ** 0 (zero) always
34 */
35
36 static ssize_t
37 sm_eofread __P((
38 SM_FILE_T *fp,
|
1 /*
2 * Copyright (c) 2000-2001 Proofpoint, 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: sscanf.c,v 1.26 2013-11-22 20:51:43 ca Exp $")
17 #include <string.h>
18 #include <sm/varargs.h>
19 #include <sm/io.h>
20 #include "local.h"
21
22 /*
23 ** SM_EOFREAD -- dummy read function for faked file below
24 **
25 ** Parameters:
26 ** fp -- file pointer
27 ** buf -- location to place read data
28 ** len -- number of bytes to read
29 **
30 ** Returns:
31 ** 0 (zero) always
32 */
33
34 static ssize_t
35 sm_eofread __P((
36 SM_FILE_T *fp,
|