lazysphere/lib/convert.h
2023-05-06 00:39:44 -04:00

20 lines
442 B
C

#ifndef CONVERT_H
#define CONVERT_H
#include "def.h"
#include <sys/stat.h>
#include <stddef.h>
long int get_number(const char* text);
long int get_blkm(const char* text);
mode_t get_mode(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, char buf[5]);
void print_date_time(time_t mills, char buf[13]);
void print_file_path(char* path);
#endif