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

Go to the source code of this file.

Macros

#define IDX(c)   ((u_char)(c) / LONG_BIT)
 
#define BIT(c)   ((u_long)1 << ((u_char)(c) % LONG_BIT))
 

Functions

 __FBSDID ("$BSDSUniX$")
 
size_t strspn (const char *s, const char *charset)
 

Macro Definition Documentation

#define BIT (   c)    ((u_long)1 << ((u_char)(c) % LONG_BIT))

Definition at line 35 of file strspn.c.

Referenced by strspn().

#define IDX (   c)    ((u_char)(c) / LONG_BIT)

Definition at line 34 of file strspn.c.

Referenced by strspn().

Function Documentation

__FBSDID ( "$BSDSUniX$"  )
size_t strspn ( const char *  s,
const char *  charset 
)

Definition at line 38 of file strspn.c.

References BIT, and IDX.