diff options
Diffstat (limited to 'tests/tests2/68_macro_concat.c')
| -rw-r--r-- | tests/tests2/68_macro_concat.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/tests2/68_macro_concat.c b/tests/tests2/68_macro_concat.c new file mode 100644 index 0000000..5c1361f --- /dev/null +++ b/tests/tests2/68_macro_concat.c @@ -0,0 +1,9 @@ +#include <stdio.h> +#define hexCh(c (c >= 10 ? 'a' + c - 10 : '0' + c) + +int main(void) +{ + int c = 0xa; + printf("hex: %c\n", hexCh(c)); + return 0; +} |
