diff options
author | Tyler Murphy <tylerm@tylerm.dev> | 2023-04-28 00:36:15 -0400 |
---|---|---|
committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-04-28 00:36:15 -0400 |
commit | c5c15dae981547308da6c4bb53f42310b429270e (patch) | |
tree | c3dd3e750b52bff50a71f1c012c62553ded14a57 /src/shared.h | |
parent | add groups and id commands (diff) | |
download | lazysphere-c5c15dae981547308da6c4bb53f42310b429270e.tar.gz lazysphere-c5c15dae981547308da6c4bb53f42310b429270e.tar.bz2 lazysphere-c5c15dae981547308da6c4bb53f42310b429270e.zip |
added ls
Diffstat (limited to 'src/shared.h')
-rw-r--r-- | src/shared.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shared.h b/src/shared.h index 430af4b..56f0a70 100644 --- a/src/shared.h +++ b/src/shared.h @@ -2,14 +2,16 @@ #include <stdio.h> #include <stdbool.h> +#include <time.h> __attribute__ ((__format__(printf, 1, 2))) void error(const char* format, ...); FILE* get_file(const char* path, const char* type); - long int get_number(const char* text); bool streql(const char* a, const char* b); - bool prefix(const char* pre, const char* str); + +void print_file_size(size_t bytes); +void print_date_time(time_t mills); |