blob: c001656572219628afdcbeb5cabb6584905948fb [file] [log] [blame]
paul718e3742002-12-13 20:15:29 +00001/*
ajs3cb98de2005-04-02 16:01:05 +00002 * $Id: str.h,v 1.2 2005/04/02 16:01:05 ajs Exp $
paul718e3742002-12-13 20:15:29 +00003 */
4
5#ifndef _ZEBRA_STR_H
6#define _ZEBRA_STR_H
7
8#ifndef HAVE_SNPRINTF
9int snprintf(char *, size_t, const char *, ...);
10#endif
11
12#ifndef HAVE_VSNPRINTF
13#define vsnprintf(buf, size, format, args) vsprintf(buf, format, args)
14#endif
15
16#ifndef HAVE_STRLCPY
17size_t strlcpy(char *, const char *, size_t);
18#endif
19
20#ifndef HAVE_STRLCAT
21size_t strlcat(char *, const char *, size_t);
22#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
paul718e3742002-12-13 20:15:29 +000028#endif