summaryrefslogtreecommitdiff
path: root/gui/fmt-pango.h
blob: cf4c3153984461a7e09353923343f9deb1eebb51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * gui/fmt-pango.h - Format strings for Pango markup
 *
 * Written 2016 by Werner Almesberger
 * Copyright 2016 by Werner Almesberger
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */


#ifndef GUI_FMT_PANGO_H
#define GUI_FMT_PANGO_H

#include <stdarg.h>


unsigned vsfmt_pango(char *buf, const char *fmt, va_list ap);
char *vfmt_pango(const char *fmt, va_list ap);
char *fmt_pango(const char *fmt, ...)
    __attribute__((format(printf, 1, 2)));

#endif /* !GUI_FMT_PANGO_H */