lazysphere/lib/convert.h

21 lines
442 B
C
Raw Normal View History

2023-05-06 04:39:44 +00:00
#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