source: trunk/Python/src/tests_jmodelica/files/Modelica/Resources/src/addNumbers.c @ 6459

Last change on this file since 6459 was 6459, checked in by Tove Bergdahl, 5 years ago

#3749: Building C test libraries for Python external functions/objects tests built during install instead of with make during test run.

File size: 238 bytes
Line 
1#include "addNumbers.h"
2
3double add(double a, double b)
4{
5  return a+b;
6}
7
8void multiplyAnArray(int* inputs, int* outputs, int size, int m)
9{
10  int i;
11  for (i = 0; i < size; i++) {
12      outputs[i] = inputs[i] * m;
13  }
14
15}
Note: See TracBrowser for help on using the repository browser.