23 lines
528 B
C
23 lines
528 B
C
#ifndef COMPOUND_UTILS_H
|
|
# define COMPOUND_UTILS_H
|
|
|
|
# include <time.h>
|
|
|
|
# include <Compound/common.h>
|
|
# include <Compound/const.h>
|
|
|
|
# define max(a, b) (a >= b ? a : b)
|
|
# define min(a, b) (a <= b ? a : b)
|
|
|
|
# define DATETIME_FORMAT "%a %d %b %X %Z %Y"
|
|
|
|
int Utils_CalcDigits(long long int n);
|
|
|
|
int Utils_LiteraliseInteger(long long int n, char *buff);
|
|
|
|
// int Utils_DateTimeLiteralise(time_t t, char *buff);
|
|
int Utils_DateTimeLiteralise(time_t timer, char *buff,
|
|
const char *__restrict format);
|
|
|
|
#endif /* COMPOUND_UTILS_H */
|