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 ("$FreeBSD$")
 
size_t() strlen (const char *str)
 

Macro Definition Documentation

◆ LONGPTR_MASK

#define LONGPTR_MASK   (sizeof(long) - 1)

Definition at line 63 of file strlen.c.

◆ testbyte

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

Definition at line 69 of file strlen.c.

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ strlen()

size_t() strlen ( const char *  str)

Definition at line 75 of file strlen.c.

References testbyte.

Referenced by iconv_convstr(), iconv_register_cspair(), iconv_sysctl_drvlist(), inet_ntop6(), strcasestr(), strdup_flags(), strlcat(), strnstr(), and strstr().

Here is the caller graph for this function: