Files
Compound/Utils/include/utils.h

27 lines
610 B
C

#ifndef COMPOUND_UTILS_H
# define COMPOUND_UTILS_H
# include <time.h>
# include <string.h>
# include <stdlib.h>
# include <math.h>
# include <stdint.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 */