paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1 | /* |
paul | 8cc4198 | 2005-05-06 21:25:49 +0000 | [diff] [blame] | 2 | * $Id: str.h,v 1.3 2005/05/06 21:25:49 paul 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 | |
paul | 8cc4198 | 2005-05-06 21:25:49 +0000 | [diff] [blame] | 28 | #endif /* _ZEBRA_STR_H */ |
| 29 | |