summaryrefslogtreecommitdiff
path: root/src/util/shared.c
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-05-04 12:24:47 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-05-04 12:24:47 -0400
commitbd471562c72035d588b78e3c80c9eb0e9a9c18ec (patch)
tree5728bcfcbd81fac687d33d423c83d76ab6809b3e /src/util/shared.c
parenti cant spell (diff)
downloadlazysphere-bd471562c72035d588b78e3c80c9eb0e9a9c18ec.tar.gz
lazysphere-bd471562c72035d588b78e3c80c9eb0e9a9c18ec.tar.bz2
lazysphere-bd471562c72035d588b78e3c80c9eb0e9a9c18ec.zip
grep
Diffstat (limited to '')
-rw-r--r--src/util/shared.c8
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