paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1 | /* |
hasso | e6a4feb | 2005-09-19 09:53:21 +0000 | [diff] [blame] | 2 | * $Id: str.h,v 1.4 2005/09/19 09:53:21 hasso Exp $ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3 | */ |
| 4 | |
| 5 | #ifndef _ZEBRA_STR_H |
| 6 | #define _ZEBRA_STR_H |
| 7 | |
| 8 | #ifndef HAVE_SNPRINTF |
paul | 8cc4198 | 2005-05-06 21:25:49 +0000 | [diff] [blame] | 9 | extern int snprintf(char *, size_t, const char *, ...); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 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 |
paul | 8cc4198 | 2005-05-06 21:25:49 +0000 | [diff] [blame] | 17 | extern size_t strlcpy(char *, const char *, size_t); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 18 | #endif |
| 19 | |
| 20 | #ifndef HAVE_STRLCAT |
paul | 8cc4198 | 2005-05-06 21:25:49 +0000 | [diff] [blame] | 21 | extern size_t strlcat(char *, const char *, size_t); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 22 | #endif |
| 23 | |
ajs | 3cb98de | 2005-04-02 16:01:05 +0000 | [diff] [blame] | 24 | #ifndef HAVE_STRNLEN |
| 25 | extern size_t strnlen(const char *s, size_t maxlen); |
| 26 | #endif |
| 27 | |
hasso | e6a4feb | 2005-09-19 09:53:21 +0000 | [diff] [blame] | 28 | #ifndef HAVE_STRNDUP |
| 29 | extern char * strndup (const char *, size_t); |
| 30 | #endif |
| 31 | |
paul | 8cc4198 | 2005-05-06 21:25:49 +0000 | [diff] [blame] | 32 | #endif /* _ZEBRA_STR_H */ |
| 33 | |