view src/scrobbler/fmt.h @ 2655:50f6dce4b91a

Use Glib memory allocation and free() consistently -- libc malloc and free are not necessarily equal to Glib allocation, mixing them may cause weird problems.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 28 May 2008 16:12:03 +0300
parents f4d8082668c1
children
line wrap: on
line source

#ifndef FMT_H
#define FMT_H 1
#define pdebug(s, b) if(b) { fmt_debug(__FILE__, __FUNCTION__, (s)); }

#include <time.h>

char *fmt_escape(const char *);
char *fmt_unescape(char *);
char *fmt_timestr(time_t, int);
char *fmt_vastr(char *, ...);
void fmt_debug(char *, const char *, char *);
char *fmt_string_pack(char *, char *, ...);
int fmt_strcasecmp(const char *s1, const char *s2);
int fmt_strncasecmp(const char *s1, const char *s2, size_t n);
#endif