2 * Sherlock Library -- Adding Formatted Attributes
4 * (c) 2005 Martin Mares <mj@ucw.cz>
5 * (c) 2007 Pavel Charvat <pchar@ucw.cz>
7 * This software may be freely distributed and used according to the terms
8 * of the GNU Lesser General Public License.
11 #include "sherlock/sherlock.h"
12 #include "sherlock/object.h"
13 #include "ucw/stkstring.h"
18 obj_add_attr_vformat(struct odes *o, uns x, char *fmt, va_list args)
20 return obj_add_attr(o, x, stk_vprintf(fmt, args));
23 struct oattr *obj_add_attr_format(struct odes *o, uns x, char *fmt, ...)
27 struct oattr *a = obj_add_attr_vformat(o, x, fmt, va);
33 obj_set_attr_vformat(struct odes *o, uns x, char *fmt, va_list args)
35 return obj_set_attr(o, x, stk_vprintf(fmt, args));
38 struct oattr *obj_set_attr_format(struct odes *o, uns x, char *fmt, ...)
42 struct oattr *a = obj_set_attr_vformat(o, x, fmt, va);