mod01 update headers and descriptions

This commit is contained in:
hugo LAMY
2025-03-08 21:53:15 +01:00
parent f992d76fe5
commit dd13c6582c
19 changed files with 392 additions and 244 deletions

15
module02/ex00/utils.h Normal file
View File

@@ -0,0 +1,15 @@
#ifndef UTILS_H
#define UTILS_H
// stringify
#define STRINGIFY_HELPER(x) #x
#define STRINGIFY(x) STRINGIFY_HELPER(x)
// concatenate
#define CONCAT_HELPER(x, y) x ## y
#define CONCAT(x, y) CONCAT_HELPER(x, y)
// mathematics
#define PERCENT(percent, total) (((float)percent / 100) * total)
#endif // UTILS_H