source: branches/dev-5819/Python/src/tests_jmodelica/files/Modelica/Resources/src/addNumbers.c @ 13800

Last change on this file since 13800 was 13800, checked in by randersson, 7 weeks ago

#5819 Merged trunk into branch

File size: 489 bytes
Line 
1#include "addNumbers.h"
2
3DllExport double add(double a, double b)
4{
5  return a + b;
6}
7
8DllExport void add_output(double a, double b, double *c)
9{
10  *c = a + b;
11}
12
13DllExport double multiple_add(double a, double b, double c, double d, double e, double f, double g, double h, double i)
14{
15  return a+b+c+d+e+f+g+h+i;
16}
17
18void multiplyAnArray(int* inputs, int* outputs, int size, int m)
19{
20  int i;
21  for (i = 0; i < size; i++) {
22      outputs[i] = inputs[i] * m;
23  }
24
25}
Note: See TracBrowser for help on using the repository browser.