Gamgee
You miserable little maggot. I'll stove your head in!
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Typedefs | Functions
kstring.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdint.h>
#include "htslib/kstring.h"

Macros

#define __ksplit_aux
 

Typedefs

typedef unsigned char ubyte_t
 

Functions

int kvsprintf (kstring_t *s, const char *fmt, va_list ap)
 
int ksprintf (kstring_t *s, const char *fmt,...)
 
char * kstrtok (const char *str, const char *sep, ks_tokaux_t *aux)
 
int ksplit_core (char *s, int delimiter, int *_max, int **_offsets)
 
void * kmemmem (const void *_str, int n, const void *_pat, int m, int **_prep)
 
char * kstrstr (const char *str, const char *pat, int **_prep)
 
char * kstrnstr (const char *str, const char *pat, int n, int **_prep)
 

Macro Definition Documentation

#define __ksplit_aux
Value:
do { \
if (_offsets) { \
s[i] = 0; \
if (n == max) { \
int *tmp; \
max = max? max<<1 : 2; \
if ((tmp = (int*)realloc(offsets, sizeof(int) * max))) { \
offsets = tmp; \
} else { \
free(offsets); \
*_offsets = NULL; \
return 0; \
} \
} \
offsets[n++] = last_start; \
} else ++n; \
} while (0)

Typedef Documentation

typedef unsigned char ubyte_t

Function Documentation

void* kmemmem ( const void *  _str,
int  n,
const void *  _pat,
int  m,
int **  _prep 
)
int ksplit_core ( char *  s,
int  delimiter,
int *  _max,
int **  _offsets 
)
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 
)