summaryrefslogtreecommitdiff
path: root/lib/str.h
diff options
context:
space:
mode:
authorajs <ajs>2005-04-02 16:01:05 +0000
committerajs <ajs>2005-04-02 16:01:05 +0000
commit3cb98dee9067372756964f461eb2c931a1c75138 (patch)
tree726827878765c01c45e5be08b909974ae54ce79f /lib/str.h
parent47004ec501bd70d558c11af05d8bacd66a8c7c25 (diff)
2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* configure.ac: Add strnlen to AC_CHECK_FUNCS. * zebra.h: Should include str.h to pick up missing functions. * str.h: Declare strnlen if needed. * str.c: Do not include str.h since zebra.h now includes it. (strnlen) New function.
Diffstat (limited to 'lib/str.h')
-rw-r--r--lib/str.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/str.h b/lib/str.h
index 4098896a..c0016565 100644
--- a/lib/str.h
+++ b/lib/str.h
@@ -1,5 +1,5 @@
/*
- * $Id: str.h,v 1.1 2002/12/13 20:15:29 paul Exp $
+ * $Id: str.h,v 1.2 2005/04/02 16:01:05 ajs Exp $
*/
#ifndef _ZEBRA_STR_H
@@ -21,4 +21,8 @@ size_t strlcpy(char *, const char *, size_t);
size_t strlcat(char *, const char *, size_t);
#endif
+#ifndef HAVE_STRNLEN
+extern size_t strnlen(const char *s, size_t maxlen);
+#endif
+
#endif