Embedded Artistry Framework
Embedded Systems C++ Framework
Macros | Functions
strcspn.c File Reference
#include "strchrnul.h"
#include <stdint.h>
#include <string.h>
Include dependency graph for strcspn.c:

Macros

#define BITOP(a, b, op)   ((a)[(size_t)(b) / (8 * sizeof *(a))] op(size_t) 1 << ((size_t)(b) % (8 * sizeof *(a))))
 

Functions

size_t strcspn (const char *s, const char *c)
 

Macro Definition Documentation

◆ BITOP

#define BITOP (   a,
  b,
  op 
)    ((a)[(size_t)(b) / (8 * sizeof *(a))] op(size_t) 1 << ((size_t)(b) % (8 * sizeof *(a))))

Function Documentation

◆ strcspn()

size_t strcspn ( const char *  s,
const char *  c 
)

References __strchrnul(), a, BITOP, memset(), and s.

Referenced by strpbrk().

Here is the caller graph for this function: