diff options
Diffstat (limited to 'string.h')
| -rw-r--r-- | string.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -6,7 +6,8 @@ #ifndef STRING_H #define STRING_H -#define S(s) (Str){s, sizeof(s) - 1} +#define S(s) \ + (Str) { s, lengthof(s) } typedef struct { byte *data; size len; |
