NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros | Typedefs | Functions
kstring.h File Reference
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>

Go to the source code of this file.

Classes

struct  __kstring_t
 
struct  ks_tokaux_t
 

Macros

#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)
 
#define KSTRING_T   kstring_t
 

Typedefs

typedef struct __kstring_t kstring_t
 

Functions

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)
 

Macro Definition Documentation

#define kroundup32 (   x)    (--(x), (x)|=(x)>>1, (x)|=(x)>>2, (x)|=(x)>>4, (x)|=(x)>>8, (x)|=(x)>>16, ++(x))

Definition at line 36 of file kstring.h.

#define KS_ATTR_PRINTF (   fmt,
  arg 
)

Definition at line 42 of file kstring.h.

#define KSTRING_T   kstring_t

Definition at line 55 of file kstring.h.

Typedef Documentation

typedef struct __kstring_t kstring_t

Function Documentation

void* kmemmem ( const void *  _str,
int  n,
const void *  _pat,
int  m,
int **  _prep 
)

Definition at line 155 of file kstring.c.

int int int ksplit_core ( char *  s,
int  delimiter,
int *  _max,
int **  _offsets 
)

Definition at line 64 of file kstring.c.

int int ksprintf ( kstring_t s,
const char *  fmt,
  ... 
)
char* kstrnstr ( const char *  str,
const char *  pat,
int  n,
int **  _prep 
)

Definition at line 181 of file kstring.c.

char* kstrstr ( const char *  str,
const char *  pat,
int **  _prep 
)

Definition at line 176 of file kstring.c.

char* kstrtok ( const char *  str,
const char *  sep,
ks_tokaux_t aux 
)

Definition at line 37 of file kstring.c.

int kvsprintf ( kstring_t s,
const char *  fmt,
va_list  ap 
)