1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-09-19 05:45:36 +05:30

bool-operations.c: drop \t, use string padding

This commit is contained in:
Intel A80486DX2-66 2024-06-25 23:15:35 +03:00
parent cbaf939777
commit 1b0b255229
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -11,10 +11,10 @@
#include <stdio.h>
#include <stdlib.h>
#define BOOL_TO_STR(x) ((x) ? "true" : "false")
#define SHOW_BOOL_INT printf("boolean = %s\t(0x%d) | integer = %s\t(0x%d)\n", \
BOOL_TO_STR(boolean), (int) boolean, \
BOOL_TO_STR(integer), (int) integer)
#define BOOL_TO_STR_PADDED(x) ((x) ? "true " : "false")
#define SHOW_BOOL_INT printf("boolean = %s (0x%d) | integer = %s (0x%d)\n", \
BOOL_TO_STR_PADDED(boolean), (int) boolean, \
BOOL_TO_STR_PADDED(integer), (int) integer)
int main(void) {
bool boolean = false;