/*
* Copyright (c) 2000-2001, 2003 Proofpoint, Inc. and its suppliers.
* All rights reserved.
*
* 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.
*
* $Id: string.h,v 1.39 2013-11-22 20:51:31 ca Exp $
*/
/*
** libsm string manipulation
*/
#ifndef SM_STRING_H
# define SM_STRING_H
# include <string.h> /* strlc{py,at}, strerror */
/* return number of bytes left in a buffer */
extern bool
extern char *
extern char *
/* for "normal" data (free'd before end of process) */
extern char *
/* for data that is supposed to be persistent. */
extern char *
extern char *
#else /* DO_NOT_USE_STRCPY */
/* for "normal" data (free'd before end of process) */
/* for data that is supposed to be persistent. */
#endif /* DO_NOT_USE_STRCPY */
extern char *
extern char *
extern size_t
extern size_t
extern size_t
extern size_t
#ifdef __STDC__
#else /* __STDC__ */
sm_strlcpyn __P((char *,
int,
va_dcl));
#endif /* __STDC__ */
# if !HASSTRERROR
extern char *
# endif /* !HASSTRERROR */
extern int
sm_strrevcmp __P((const char *, const char *));
extern int
sm_strrevcasecmp __P((const char *, const char *));
extern int
sm_strcasecmp __P((const char *, const char *));
extern int
extern LONGLONG_T
sm_strtoll __P((const char *, char**, int));
extern ULONGLONG_T
sm_strtoull __P((const char *, char**, int));
extern void
stripquotes __P((char *));
#endif /* SM_STRING_H */