mirror of
https://gitlab.com/80486DX2-66/gists
synced 2024-11-09 21:32:02 +05:30
bool-operations.c: drop \t
, use string padding
This commit is contained in:
parent
cbaf939777
commit
1b0b255229
@ -11,10 +11,10 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define BOOL_TO_STR(x) ((x) ? "true" : "false")
|
#define BOOL_TO_STR_PADDED(x) ((x) ? "true " : "false")
|
||||||
#define SHOW_BOOL_INT printf("boolean = %s\t(0x%d) | integer = %s\t(0x%d)\n", \
|
#define SHOW_BOOL_INT printf("boolean = %s (0x%d) | integer = %s (0x%d)\n", \
|
||||||
BOOL_TO_STR(boolean), (int) boolean, \
|
BOOL_TO_STR_PADDED(boolean), (int) boolean, \
|
||||||
BOOL_TO_STR(integer), (int) integer)
|
BOOL_TO_STR_PADDED(integer), (int) integer)
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
bool boolean = false;
|
bool boolean = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user