Manual: Add newline note
[quvi.git] / lib / util.h
blob81b29333a6139e0d8825e57c90c3be1d6753fbf7
1 /* quvi
2 * Copyright (C) 2009,2010 Toni Gundogdu <legatvs@gmail.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301 USA
20 #ifndef util_h
21 #define util_h
23 char *vafreprintf(char **dst, const char *fmt, va_list);
24 char *freprintf(char **dst, const char *fmt, ...);
26 QUVIcode to_utf8(_quvi_media_t);
28 char *strepl(const char *s, const char *what, const char *with);
29 int add_media_url(_quvi_llst_node_t * lst, const char *fmt, ...);
30 char *unescape(_quvi_t quvi, char *s);
31 char *from_html_entities(char *src);
32 char *dirname_from(const char *s);
34 #endif
35 /* vim: set ts=2 sw=2 tw=72 expandtab: */