summaryrefslogtreecommitdiffstats
path: root/sprintf_alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sprintf_alloc.h')
-rw-r--r--sprintf_alloc.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/sprintf_alloc.h b/sprintf_alloc.h
new file mode 100644
index 0000000..3d68d69
--- /dev/null
+++ b/sprintf_alloc.h
@@ -0,0 +1,23 @@
+/* sprintf_alloca.c -- like sprintf with memory allocation
+
+ Carl D. Worth
+
+ Copyright (C) 2001 University of Southern California
+
+ 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, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+*/
+
+#ifndef SPRINTF_ALLOC_H
+#define SPRINTF_ALLOC_H
+
+int sprintf_alloc(char **str, const char *fmt, ...);
+
+#endif