mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-01-24 20:32:07 +05:30
bool-operations.c: make use of EXIT_SUCCESS
This commit is contained in:
parent
ee3c8b26c7
commit
105deedfac
@ -9,6 +9,7 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define BOOL_TO_STR(x) ((x) ? "true" : "false")
|
#define BOOL_TO_STR(x) ((x) ? "true" : "false")
|
||||||
#define SHOW_BOOL printf("boolean = %s\t(0x%" PRIxMAX ")\n", \
|
#define SHOW_BOOL printf("boolean = %s\t(0x%" PRIxMAX ")\n", \
|
||||||
@ -43,5 +44,5 @@ int main(void) {
|
|||||||
boolean >>= 1;
|
boolean >>= 1;
|
||||||
SHOW_BOOL;
|
SHOW_BOOL;
|
||||||
|
|
||||||
return 0;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user