PageRenderTime 45ms CodeModel.GetById 19ms 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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. /* File : example.c */
  2. /* A global variable */
  3. double Foo = 3.0;
  4. int add1(int x, int y)
  5. {
  6. return x+y;
  7. }
  8. void add2(int x, int *y, int *z)
  9. {
  10. *z = x+*y;
  11. }
  12. int add3(int x, int y, int *z)
  13. {
  14. *z = x-y;
  15. return x+y;
  16. }
  17. void add4(int x, int *y)
  18. {
  19. *y += x;
  20. }