PageRenderTime 22ms CodeModel.GetById 19ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/lua/functest/example.c

#
C | 25 lines | 18 code | 5 blank | 2 comment | 0 complexity | 5dd27b9a90b1d646e878cf8ae515556b MD5 | raw file
 1/* File : example.c */
 2
 3/* A global variable */
 4double Foo = 3.0;
 5
 6int add1(int x, int y)
 7{
 8   return x+y;
 9}
10
11void add2(int x, int *y, int *z)
12{
13   *z = x+*y;
14}
15
16int add3(int x, int y, int *z)
17{
18   *z = x-y;
19   return x+y;
20}
21
22void add4(int x, int *y)
23{
24   *y += x;
25}