aboutsummaryrefslogtreecommitdiffstats
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2014-07-21 22:44:14 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2014-07-22 11:06:54 +0200
commit6203966fbf1f8886ff59cc9d6350b034ee5374c9 (patch)
treeac0232bad6af82425a5009788c1349237a25e813 /src/calcurse.h
parent9d8d0c18b0329f11990b8e0f2d65424967b6293f (diff)
downloadcalcurse-6203966fbf1f8886ff59cc9d6350b034ee5374c9.tar.gz
calcurse-6203966fbf1f8886ff59cc9d6350b034ee5374c9.zip
Add vasprintf() and asprintf()
The new utils.c functions vasprintf() and asprintf() are analogs to sprintf() and vsprintf(). However, instead of requiring a buffer that is large enough to hold the output data, the functions allocate a string and return a pointer to it. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index e593ff0..887e224 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -1051,6 +1051,8 @@ void print_recur_apoint(const char *, long, unsigned,
struct recur_apoint *);
void print_recur_event(const char *, long, struct recur_event *);
void print_todo(const char *, struct todo *);
+int vasprintf(char **, const char *, va_list);
+int asprintf(char **, const char *, ...);
/* vars.c */
extern int col, row;