56 void strcrep(
char *str,
char s,
char r);
65 bool yank(
char *text);
68 #define INVALID_TIME ((unsigned int) ~0)
87 #define lmalloc(S) _lmalloc (__FILE__, __LINE__, __func__, S)
96 #define lcalloc(N,S) _lcalloc (__FILE__, __LINE__, __func__, N, S)
105 #define lrealloc(P,S) _lrealloc(__FILE__, __LINE__, __func__, P, S)
117 void*
_lmalloc (
char *srcfile,
int srcline,
const char *srcfunc,
size_t size);
130 void*
_lcalloc (
char *srcfile,
int srcline,
const char *srcfunc,
size_t nmemb,
size_t size);
143 void*
_lrealloc(
char *srcfile,
int srcline,
const char *srcfunc,
void *ptr,
size_t size);
152 #define lstrdup(S) _lstrdup(__FILE__, __LINE__, __func__, S)
164 char *
_lstrdup(
char *srcfile,
int srcline,
const char *srcfunc,
const char *s);
void * _lmalloc(char *srcfile, int srcline, const char *srcfunc, size_t size)
Definition: helper.c:111
void * _lrealloc(char *srcfile, int srcline, const char *srcfunc, void *ptr, size_t size)
Definition: helper.c:129
static volatile char * buffer
Definition: sound.c:61
char * smprintf(char *fmt,...)
printf style function with automated allocation of buffer.
Definition: helper.c:36
char * strstrp(char *str)
Definition: helper.c:73
unsigned int parse_time_to_sec(char *str)
Parse a string to seconds.
Definition: helper.c:147
void strcrep(char *str, char s, char r)
replace a char with another char in a given string
Definition: helper.c:51
void * _lcalloc(char *srcfile, int srcline, const char *srcfunc, size_t nmemb, size_t size)
Definition: helper.c:120
bool yank(char *text)
Yank the provided text.
Definition: helper.c:86
char * _lstrdup(char *srcfile, int srcline, const char *srcfunc, const char *s)
Definition: helper.c:138
int snprint_ftime(char *buffer, size_t buffer_size, int time_secs)
Write a formated version of time_secs to buffer.
Definition: helper.c:60