aboutsummaryrefslogtreecommitdiff
path: root/include/argot/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/argot/util.h')
-rw-r--r--include/argot/util.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/argot/util.h b/include/argot/util.h
new file mode 100644
index 0000000..0208100
--- /dev/null
+++ b/include/argot/util.h
@@ -0,0 +1,26 @@
+/* argot - Gray's Extensible Configuration System -*- c -*-
+ Copyright (C) 2007-2016 Sergey Poznyakoff
+
+ Grecs 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 3 of the License, or (at your
+ option) any later version.
+
+ Grecs 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.
+
+ You should have received a copy of the GNU General Public License along
+ with Grecs. If not, see <http://www.gnu.org/licenses/>. */
+
+#ifndef _ARGOT_UTIL_H
+#define _ARGOT_UTIL_H
+
+#include <stdarg.h>
+
+ssize_t argot_getline(char **pbuf, size_t *psize, FILE *fp);
+int argot_vasprintf(char **pbuf, size_t *psize, const char *fmt, va_list ap);
+int argot_asprintf(char **pbuf, size_t *psize, const char *fmt, ...);
+
+#endif

Return to:

Send suggestions and report system problems to the System administrator.