FreeBSD kernel libkern code
strlen.c File Reference
#include <sys/cdefs.h>
#include <sys/libkern.h>
#include <sys/limits.h>
Include dependency graph for strlen.c:

Go to the source code of this file.

Macros

#define LONGPTR_MASK   (sizeof(long) - 1)
 
#define testbyte(x)
 

Functions

 __FBSDID ("$BSDSUniX$")
 
size_t strlen (const char *str)
 

Macro Definition Documentation

#define LONGPTR_MASK   (sizeof(long) - 1)

Definition at line 69 of file strlen.c.

Referenced by strlen().

#define testbyte (   x)
Value:
do { \
if (p[x] == '\0') \
return (p - str + x); \
} while (0)

Definition at line 75 of file strlen.c.

Referenced by strlen().

Function Documentation

__FBSDID ( "$BSDSUniX$"  )
size_t strlen ( const char *  str)

Definition at line 82 of file strlen.c.

References LONGPTR_MASK, and testbyte.

Referenced by iconv_convstr(), iconv_register_cspair(), iconv_sysctl_add(), iconv_sysctl_drvlist(), inet_ntop6(), strdup(), strlcat(), and strstr().

Here is the caller graph for this function: