US_ARRAY_ITERATE()

This commit is contained in:
Maxim Devaev
2022-07-20 12:54:13 +03:00
parent 2c9334d53f
commit 1c1e3b0875
10 changed files with 78 additions and 38 deletions

View File

@@ -60,8 +60,6 @@
#define US_ASPRINTF(x_dest, x_fmt, ...) assert(asprintf(&(x_dest), (x_fmt), ##__VA_ARGS__) >= 0)
#define US_ARRAY_LEN(x_array) (sizeof(x_array) / sizeof((x_array)[0]))
INLINE char *us_strdup(const char *str) {
char *const new = strdup(str);