diff options
Diffstat (limited to '')
-rw-r--r-- | src/util/shared.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/shared.c b/src/util/shared.c index 8f2fe93..5e08b8d 100644 --- a/src/util/shared.c +++ b/src/util/shared.c @@ -170,6 +170,14 @@ void print_date_time(time_t mills, char buf[13]) { snprintf(buf + n, 13 - n, "%d %02d:%02d ", info->tm_mday, info->tm_hour, info->tm_sec); } +void print_file_path(char* path) { + if (streql("-", path)) { + printf("(standard input)"); + } else { + printf("%s", path); + } +} + #ifndef MAJOR #define MAJOR 0 #endif |