fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
Functions
stralloc.c File Reference

genious dynamic string handling More...

#include <stdlib.h>
#include "byte.h"
#include "str.h"
#include "stralloc.h"
#include "alloc.h"
Include dependency graph for stralloc.c:

Go to the source code of this file.

Functions

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

Detailed Description

genious dynamic string handling

Author
djb qmail, ucspi-tcp

Definition in file stralloc.c.

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: