index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2014-08-06 16:36:00 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-09-23 21:43:16 +1000 |
commit | c792262b137a5f2daddac22f82e7d8d98d0d7d31 (patch) | |
tree | d3177e6c722a96da72503a912d4c5fded0ef78e8 /src/common/util-common.h | |
parent | 9c066dff439ba453f4c362e1875b794cf3f362ed (diff) |
-rw-r--r-- | src/common/util-common.h | 3 |
diff --git a/src/common/util-common.h b/src/common/util-common.h index 576702fa..ca8db5ab 100644 --- a/src/common/util-common.h +++ b/src/common/util-common.h @@ -20,6 +20,7 @@ #ifndef _PM_UTIL_COMMON_H #define _PM_UTIL_COMMON_H +#include <stdio.h> #include <sys/stat.h> /* struct stat */ const char *mbasename(const char *path); @@ -27,6 +28,8 @@ char *mdirname(const char *path); int llstat(char *path, struct stat *buf); +char *safe_fgets(char *s, int size, FILE *stream); + #ifndef HAVE_STRNDUP char *strndup(const char *s, size_t n); #endif |