summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/debian/shlibs/files-wrong-ma-foreign/build-spec/orig/code.c
blob: 0ed08e05135efcef3178684b2659d0735f1937cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdlib.h>
#include <math.h>

double e(void (*f)(char *)){
  char tmp[10];
  double x;
  f(tmp);
  x = atof(tmp);
  return exp(x);
}

double energy(double mass){
  return pow(10.0, 8.0) * pow(3.0, 2.0) * mass;
}