Computer Laboratory

tesla_strnlen.h
Go to the documentation of this file.
1 #ifdef HAVE_CONFIG_H
2 #include "config.h"
3 #endif
4 
5 #ifdef _KERNEL
6 #include <sys/libkern.h>
7 #else
8 #ifdef HAVE_STRNLEN
9 #include <string.h>
10 #else
11 /* If we don't have strnlen(), fake it. */
12 #warning Platform does not supply strnlen(); faking it with strlen().
13 #define strnlen(s, len) strlen(s)
14 #endif
15 #endif