blob: 145863d265498c19df420f71f6132374db4623a7 [file] [log] [blame]
paul718e3742002-12-13 20:15:29 +00001/*
paul8cc41982005-05-06 21:25:49 +00002 * $Id: str.h,v 1.3 2005/05/06 21:25:49 paul Exp $
paul718e3742002-12-13 20:15:29 +00003 */
4
5#ifndef _ZEBRA_STR_H
6#define _ZEBRA_STR_H
7
8#ifndef HAVE_SNPRINTF
paul8cc41982005-05-06 21:25:49 +00009extern int snprintf(char *, size_t, const char *, ...);
paul718e3742002-12-13 20:15:29 +000010#endif
11
12#ifndef HAVE_VSNPRINTF
13#define vsnprintf(buf, size, format, args) vsprintf(buf, format, args)
14#endif
15
16#ifndef HAVE_STRLCPY
paul8cc41982005-05-06 21:25:49 +000017extern size_t strlcpy(char *, const char *, size_t);
paul718e3742002-12-13 20:15:29 +000018#endif
19
20#ifndef HAVE_STRLCAT
paul8cc41982005-05-06 21:25:49 +000021extern size_t strlcat(char *, const char *, size_t);
paul718e3742002-12-13 20:15:29 +000022#endif
23
ajs3cb98de2005-04-02 16:01:05 +000024#ifndef HAVE_STRNLEN
25extern size_t strnlen(const char *s, size_t maxlen);
26#endif
27
paul8cc41982005-05-06 21:25:49 +000028#endif /* _ZEBRA_STR_H */
29