/*
* Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
* All rights reserved.
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Chris Torek.
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the sendmail distribution.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <string.h>
#include "local.h"
/*
** SM_EOFREAD -- dummy read function for faked file below
**
** Parameters:
** fp -- file pointer
** buf -- location to place read data
** len -- number of bytes to read
**
** Returns:
** 0 (zero) always
*/
static ssize_t
char *buf,
/* ARGSUSED0 */
static ssize_t
char *buf;
{
return 0;
}
/*
** SM_IO_SSCANF -- scan a string to find data units
**
** Parameters:
** str -- strings containing data
** fmt -- format directive for finding data units
** ... -- memory locations to place format found data units
**
** Returns:
** Failure: SM_IO_EOF
** Success: number of data units found
**
** Side Effects:
** Attempts to strlen() 'str'; if not a '\0' terminated string
** Faking the string 'str' as a file.
*/
int
#if SM_VA_STD
#else /* SM_VA_STD */
const char *str;
char *fmt;
#endif /* SM_VA_STD */
{
int ret;
return ret;
}