fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
Macros | Functions
str.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define str_equal(s, t)   (!str_diff((s),(t)))
 
#define str_cat(s, t)   str_append(s,t)
 

Functions

unsigned int str_copy (char *, const char *)
 
unsigned int str_copyb (char *, const char *, unsigned int)
 
int str_diff (const char *, const char *)
 
int str_diffn (const char *, const char *, unsigned int)
 
unsigned int str_len (const char *)
 
unsigned int str_chr (const char *, int)
 
unsigned int str_rchr (const char *, int)
 
int str_start (const char *, const char *)
 
char * str_append (char *out, const char *s)
 

Macro Definition Documentation

◆ str_cat

#define str_cat (   s,
 
)    str_append(s,t)

Definition at line 23 of file str.h.

◆ str_equal

#define str_equal (   s,
 
)    (!str_diff((s),(t)))

Definition at line 22 of file str.h.

Function Documentation

◆ str_append()

char * str_append ( char *  out,
const char *  s 
)

Definition at line 128 of file str.c.

Here is the call graph for this function:

◆ str_chr()

unsigned int str_chr ( const char *  s,
int  c 
)

Definition at line 81 of file str.c.

Here is the caller graph for this function:

◆ str_copy()

unsigned int str_copy ( char *  s,
const char *  t 
)

Definition at line 11 of file str.c.

Here is the caller graph for this function:

◆ str_copyb()

unsigned int str_copyb ( char *  s,
const char *  t,
unsigned int  max 
)

Definition at line 24 of file str.c.

◆ str_diff()

int str_diff ( const char *  s,
const char *  t 
)

Definition at line 40 of file str.c.

◆ str_diffn()

int str_diffn ( const char *  s,
const char *  t,
unsigned int  len 
)

Definition at line 54 of file str.c.

◆ str_len()

unsigned int str_len ( const char *  s)

Definition at line 68 of file str.c.

Here is the caller graph for this function:

◆ str_rchr()

unsigned int str_rchr ( const char *  s,
int  c 
)

Definition at line 97 of file str.c.

◆ str_start()

int str_start ( const char *  s,
const char *  t 
)

Definition at line 116 of file str.c.

Here is the caller graph for this function: