summaryrefslogtreecommitdiffstats
path: root/fish/fish.c
diff options
context:
space:
mode:
Diffstat (limited to 'fish/fish.c')
-rw-r--r--fish/fish.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fish/fish.c b/fish/fish.c
index b825626b..e506f7ef 100644
--- a/fish/fish.c
+++ b/fish/fish.c
@@ -645,6 +645,15 @@ print_strings (char * const * const argv)
printf ("%s\n", argv[argc]);
}
+void
+print_table (char * const * const argv)
+{
+ int i;
+
+ for (i = 0; argv[i] != NULL; i += 2)
+ printf ("%s: %s\n", argv[i], argv[i+1]);
+}
+
int
is_true (const char *str)
{