41:7f90a03e186e | 42:ff3dd1ee7dee |
---|---|
8 #ifndef _SSTRING_H | 8 #ifndef _SSTRING_H |
9 #define _SSTRING_H | 9 #define _SSTRING_H |
10 | 10 |
11 #include <stddef.h> | 11 #include <stddef.h> |
12 | 12 |
13 /* use macros for literals only */ | |
13 #define S(s) { s, sizeof(s)-1 } | 14 #define S(s) { s, sizeof(s)-1 } |
14 #define ST(s) sstrn(s, sizeof(s)-1) | 15 #define ST(s) sstrn(s, sizeof(s)-1) |
15 | 16 |
16 #ifdef __cplusplus | 17 #ifdef __cplusplus |
17 extern "C" { | 18 extern "C" { |