Q
qak
Suppose: int Buffer:ut(const char *s);
Where: Put() has to find the length of 's' by strlen().
I would like to have: Put("Header Tag...") where sizeof("Header Tag...") -
1 is known at compile-time.
Macro is acceptable, but must report error if 's' is not string literal:
sizeof(s) yield size of const char*, which is not length of string.
Where: Put() has to find the length of 's' by strlen().
I would like to have: Put("Header Tag...") where sizeof("Header Tag...") -
1 is known at compile-time.
Macro is acceptable, but must report error if 's' is not string literal:
sizeof(s) yield size of const char*, which is not length of string.