FreeBSD kernel libkern code
strcspn.c File Reference
#include <sys/cdefs.h>
#include <sys/libkern.h>
#include <sys/types.h>
#include <sys/limits.h>
Include dependency graph for strcspn.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 strcspn (const char *__restrict s, const char *__restrict charset)
 

Macro Definition Documentation

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

Definition at line 35 of file strcspn.c.

Referenced by strcspn().

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

Definition at line 34 of file strcspn.c.

Referenced by strcspn().

Function Documentation

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

Definition at line 38 of file strcspn.c.

References BIT, and IDX.