fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions
stralloc.h File Reference
#include <sys/types.h>
Include dependency graph for stralloc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stralloc
 

Macros

#define stralloc_0(sa)   stralloc_append(sa,"")
 
#define stralloc_catlong(sa, l)   (stralloc_catlong0((sa),(l),0))
 
#define stralloc_catuint0(sa, i, n)   (stralloc_catulong0((sa),(i),(n)))
 
#define stralloc_catint0(sa, i, n)   (stralloc_catlong0((sa),(i),(n)))
 
#define stralloc_catint(sa, i)   (stralloc_catlong0((sa),(i),0))
 

Typedefs

typedef struct stralloc stralloc
 

Functions

int stralloc_ready (stralloc *sa, size_t len)
 
int stralloc_readyplus (stralloc *sa, size_t len)
 
int stralloc_copy (stralloc *, stralloc *)
 
int stralloc_cat (stralloc *, stralloc *)
 
int stralloc_copys (stralloc *, const char *)
 
int stralloc_cats (stralloc *, const char *)
 
int stralloc_copyb (stralloc *, const char *, unsigned int)
 
int stralloc_catb (stralloc *, const char *, unsigned int)
 
int stralloc_append (stralloc *sa, const char *in)
 
int stralloc_starts (stralloc *, const char *)
 
int stralloc_catulong0 (stralloc *, unsigned long, unsigned int)
 
int stralloc_catlong0 (stralloc *, long, unsigned int)
 
void stralloc_free (stralloc *)
 

Macro Definition Documentation

◆ stralloc_0

#define stralloc_0 (   sa)    stralloc_append(sa,"")

Definition at line 37 of file stralloc.h.

◆ stralloc_catint

#define stralloc_catint (   sa,
 
)    (stralloc_catlong0((sa),(i),0))

Definition at line 47 of file stralloc.h.

◆ stralloc_catint0

#define stralloc_catint0 (   sa,
  i,
 
)    (stralloc_catlong0((sa),(i),(n)))

Definition at line 46 of file stralloc.h.

◆ stralloc_catlong

#define stralloc_catlong (   sa,
 
)    (stralloc_catlong0((sa),(l),0))

Definition at line 44 of file stralloc.h.

◆ stralloc_catuint0

#define stralloc_catuint0 (   sa,
  i,
 
)    (stralloc_catulong0((sa),(i),(n)))

Definition at line 45 of file stralloc.h.

Typedef Documentation

◆ stralloc

typedef struct stralloc stralloc

Function Documentation

◆ stralloc_append()

int stralloc_append ( stralloc sa,
const char *  in 
)

Definition at line 112 of file stralloc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stralloc_cat()

int stralloc_cat ( stralloc sato,
stralloc safrom 
)

Definition at line 21 of file stralloc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stralloc_catb()

int stralloc_catb ( stralloc sa,
const char *  s,
unsigned int  n 
)

Definition at line 26 of file stralloc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stralloc_catlong0()

int stralloc_catlong0 ( stralloc sa,
long  l,
unsigned int  n 
)

Definition at line 103 of file stralloc.c.

Here is the call graph for this function:

◆ stralloc_cats()

int stralloc_cats ( stralloc sa,
const char *  s 
)

Definition at line 36 of file stralloc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stralloc_catulong0()

int stralloc_catulong0 ( stralloc sa,
unsigned long  u,
unsigned int  n 
)

Definition at line 84 of file stralloc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stralloc_copy()

int stralloc_copy ( stralloc sato,
stralloc safrom 
)

Definition at line 41 of file stralloc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stralloc_copyb()

int stralloc_copyb ( stralloc sa,
const char *  s,
unsigned int  n 
)

Definition at line 70 of file stralloc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stralloc_copys()

int stralloc_copys ( stralloc sa,
const char *  s 
)

Definition at line 79 of file stralloc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stralloc_free()

void stralloc_free ( stralloc sa)

Definition at line 122 of file stralloc.c.

◆ stralloc_ready()

int stralloc_ready ( stralloc sa,
size_t  len 
)

Definition at line 47 of file stralloc.c.

Here is the caller graph for this function:

◆ stralloc_readyplus()

int stralloc_readyplus ( stralloc sa,
size_t  len 
)

Definition at line 61 of file stralloc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stralloc_starts()

int stralloc_starts ( stralloc sa,
const char *  s 
)

Definition at line 14 of file stralloc.c.

Here is the call graph for this function: