fehQlibs 27
Qlibs
Loading...
Searching...
No Matches
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)
 
#define stralloc_catlong(sa, l)
 
#define stralloc_catuint0(sa, i, n)
 
#define stralloc_catint0(sa, i, n)
 
#define stralloc_catint(sa, i)
 

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)
Value:
int stralloc_append(stralloc *sa, const char *in)
Definition stralloc.c:112

Definition at line 37 of file stralloc.h.

◆ stralloc_catint

#define stralloc_catint ( sa,
i )
Value:
(stralloc_catlong0((sa),(i),0))
int stralloc_catlong0(stralloc *, long, unsigned int)
Definition stralloc.c:103

Definition at line 47 of file stralloc.h.

◆ stralloc_catint0

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

Definition at line 46 of file stralloc.h.

◆ stralloc_catlong

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

Definition at line 44 of file stralloc.h.

◆ stralloc_catuint0

#define stralloc_catuint0 ( sa,
i,
n )
Value:
(stralloc_catulong0((sa),(i),(n)))
int stralloc_catulong0(stralloc *, unsigned long, unsigned int)
Definition stralloc.c:84

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 )
extern

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 )
extern

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 )
extern

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 )
extern

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 )
extern

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 )
extern

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 )
extern

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 )
extern

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 )
extern

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)
extern

Definition at line 122 of file stralloc.c.

◆ stralloc_ready()

int stralloc_ready ( stralloc * sa,
size_t len )
extern

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 )
extern

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 )
extern

Definition at line 14 of file stralloc.c.

Here is the call graph for this function: