glibc/tests/Sanity/basic-linking-sanity/lm.c

14 lines
209 B
C
Raw Normal View History

#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);
close(fp);
return 0;
}