1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-11-14 20:35:54 +05:30

floatscan-experiment.c: make use of EXIT_SUCCESS

This commit is contained in:
Intel A80486DX2-66 2024-06-25 11:52:09 +03:00
parent 6649720fcd
commit 6a9dde51e5
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -42,6 +42,7 @@
#include <math.h> #include <math.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
/* wrapping code --- beginning */ /* wrapping code --- beginning */
const char* fgetc_ptr = NULL; const char* fgetc_ptr = NULL;
@ -592,6 +593,7 @@ int main(int argc, char** argv) {
printf("Decimal floating-point format: %Lf\n", result); printf("Decimal floating-point format: %Lf\n", result);
printf("Double floating-point format : %Lg\n", result); printf("Double floating-point format : %Lg\n", result);
printf("Hexadecimal form : %La\n", result); printf("Hexadecimal form : %La\n", result);
return 0;
return EXIT_SUCCESS;
} }
/* test code --- end */ /* test code --- end */