#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
Go to the source code of this file.
|
int | kvsprintf (kstring_t *s, const char *fmt, va_list ap) KS_ATTR_PRINTF(2 |
|
int int | ksprintf (kstring_t *s, const char *fmt,...) KS_ATTR_PRINTF(2 |
|
int int int | ksplit_core (char *s, int delimiter, int *_max, int **_offsets) |
|
char * | kstrstr (const char *str, const char *pat, int **_prep) |
|
char * | kstrnstr (const char *str, const char *pat, int n, int **_prep) |
|
void * | kmemmem (const void *_str, int n, const void *_pat, int m, int **_prep) |
|
char * | kstrtok (const char *str, const char *sep, ks_tokaux_t *aux) |
|
#define kroundup32 |
( |
|
x | ) |
(--(x), (x)|=(x)>>1, (x)|=(x)>>2, (x)|=(x)>>4, (x)|=(x)>>8, (x)|=(x)>>16, ++(x)) |
#define KS_ATTR_PRINTF |
( |
|
fmt, |
|
|
|
arg |
|
) |
| |
void* kmemmem |
( |
const void * |
_str, |
|
|
int |
n, |
|
|
const void * |
_pat, |
|
|
int |
m, |
|
|
int ** |
_prep |
|
) |
| |
int int int ksplit_core |
( |
char * |
s, |
|
|
int |
delimiter, |
|
|
int * |
_max, |
|
|
int ** |
_offsets |
|
) |
| |
int int ksprintf |
( |
kstring_t * |
s, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
char* kstrnstr |
( |
const char * |
str, |
|
|
const char * |
pat, |
|
|
int |
n, |
|
|
int ** |
_prep |
|
) |
| |
char* kstrstr |
( |
const char * |
str, |
|
|
const char * |
pat, |
|
|
int ** |
_prep |
|
) |
| |
char* kstrtok |
( |
const char * |
str, |
|
|
const char * |
sep, |
|
|
ks_tokaux_t * |
aux |
|
) |
| |
int kvsprintf |
( |
kstring_t * |
s, |
|
|
const char * |
fmt, |
|
|
va_list |
ap |
|
) |
| |