glibc/tests/Sanity/basic-linking-sanity/lm.c
Martin Coufal cace4f829d CI Tests: fix /tests/Sanity/basic-linking-sanity
* use 'fclose'
* add missing includes
2024-02-02 14:30:22 +00:00

14 lines
210 B
C

#include <stdio.h>
#include <math.h>
int main(){
FILE *fp = fopen("lm.out", "w");
double a = pow(10, 2);
fprintf(fp, "POW: %0.2f\n", a);
fprintf(fp, "SIN: %0.2f\n", 1.0);
fclose(fp);
return 0;
}