Created
November 30, 2018 03:36
-
-
Save leiless/c961a75fc5eb4f00e9ef21c5d6729807 to your computer and use it in GitHub Desktop.
static strlen() macro for char[]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * XXX: Should used only for `char[]'(NOT `char *') | |
| */ | |
| #define QSTRLEN(s) (sizeof(s) - 1) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment