librfn
An ad-hoc utility library
Functions
String manipulation

Various string manipulation routines. More...

Functions

char * xstrdup (const char *s)
 
char * strdup_join (const char *head, const char *tail)
 
char * xstrdup_join (const char *head, const char *tail)
 
char * strtolower (char *s)
 
char * strdup_tolower (const char *s)
 
char * xstrdup_tolower (const char *s)
 
char * strtoupper (char *s)
 
char * strdup_toupper (const char *s)
 
char * xstrdup_toupper (const char *s)
 
char * strdup_printf (const char *format,...)
 
char * strdup_vprintf (const char *format, va_list ap)
 
char * xstrdup_printf (const char *format,...)
 
char * xstrdup_vprintf (const char *format, va_list ap)
 

Detailed Description

Various string manipulation routines.

This module places a heavy emphasis on strdup() and xstrdup() based dynamic memory management techniques.

Function Documentation

char* strdup_join ( const char *  head,
const char *  tail 
)

Definition at line 34 of file string.c.

char* strdup_printf ( const char *  format,
  ... 
)

Definition at line 88 of file string.c.

char* strdup_tolower ( const char *  s)

Definition at line 57 of file string.c.

char* strdup_toupper ( const char *  s)

Definition at line 77 of file string.c.

char* strdup_vprintf ( const char *  format,
va_list  ap 
)

Definition at line 100 of file string.c.

char* strtolower ( char *  s)

Definition at line 44 of file string.c.

char* strtoupper ( char *  s)

Definition at line 68 of file string.c.

char* xstrdup ( const char *  s)

Definition at line 29 of file string.c.

char* xstrdup_join ( const char *  head,
const char *  tail 
)

Definition at line 39 of file string.c.

char* xstrdup_printf ( const char *  format,
  ... 
)

Definition at line 117 of file string.c.

char* xstrdup_tolower ( const char *  s)

Definition at line 63 of file string.c.

char* xstrdup_toupper ( const char *  s)

Definition at line 83 of file string.c.

char* xstrdup_vprintf ( const char *  format,
va_list  ap 
)

Definition at line 129 of file string.c.