Files
Compound/Utils/include/utils.h

25 lines
518 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);
#endif /* COMPOUND_UTILS_H */