commit 045fc62028a6636d044cab371fb0e9553cf7b1e8
parent 2982d885332c6815b0bd424387a8bb61c8abb24d
Author: sin <sin@2f30.org>
Date: Fri, 14 Nov 2014 18:13:14 +0000
Group related decls together in util.h
Diffstat:
M | util.h | | | 20 | ++++++++++++-------- |
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/util.h b/util.h
@@ -16,25 +16,29 @@ extern char *argv0;
char *agetcwd(void);
void apathmax(char **, long *);
-void enmasse(int, char **, int (*)(const char *, const char *));
+
void *ecalloc(size_t, size_t);
void *emalloc(size_t size);
void *erealloc(void *, size_t);
-void eprintf(const char *, ...);
-void enprintf(int, const char *, ...);
char *estrdup(const char *);
+
+void enprintf(int, const char *, ...);
+void eprintf(const char *, ...);
+void weprintf(const char *, ...);
+
double estrtod(const char *);
long estrtol(const char *, int);
-void fnck(const char *, const char *, int (*)(const char *, const char *));
-char *humansize(double);
-void putword(const char *);
-void recurse(const char *, void (*)(const char *));
#undef strlcat
size_t strlcat(char *, const char *, size_t);
#undef strlcpy
size_t strlcpy(char *, const char *, size_t);
-void weprintf(const char *, ...);
+/* misc */
+void enmasse(int, char **, int (*)(const char *, const char *));
+void fnck(const char *, const char *, int (*)(const char *, const char *));
mode_t getumask(void);
+char *humansize(double);
mode_t parsemode(const char *, mode_t, mode_t);
+void putword(const char *);
+void recurse(const char *, void (*)(const char *));