summaryrefslogtreecommitdiffstats
path: root/src/pacman/util.h
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2019-10-12 05:11:51 +0200
committerAndrew Gregory <andrew.gregory.8@gmail.com>2019-10-12 05:14:29 +0200
commita82b0028e431dbd8bb3512c3193b52985da82ec2 (patch)
tree7d8b96002c05ba3f5a621bf8efc74530b59b3a01 /src/pacman/util.h
parenta2c4ad46751e4dcb85a739437d9331bf9282d9be (diff)
downloadpacman-a82b0028e431dbd8bb3512c3193b52985da82ec2.tar.gz
pacman-a82b0028e431dbd8bb3512c3193b52985da82ec2.tar.xz
add arg_to_string helper
Converts an argc/argv pair to a string for presentation to the user. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Diffstat (limited to 'src/pacman/util.h')
-rw-r--r--src/pacman/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/util.h b/src/pacman/util.h
index a1fbef46..4b049849 100644
--- a/src/pacman/util.h
+++ b/src/pacman/util.h
@@ -76,6 +76,7 @@ int multiselect_question(char *array, int count);
int colon_printf(const char *format, ...) __attribute__((format(printf, 1, 2)));
int yesno(const char *format, ...) __attribute__((format(printf, 1, 2)));
int noyes(const char *format, ...) __attribute__((format(printf, 1, 2)));
+char *arg_to_string(int argc, char *argv[]);
int pm_printf(alpm_loglevel_t level, const char *format, ...) __attribute__((format(printf,2,3)));
int pm_asprintf(char **string, const char *format, ...) __attribute__((format(printf,2,3)));