diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2013-01-12 16:54:45 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2013-01-12 16:54:45 +0000 |
commit | 079165abe2b10a8f10633a2e16d50006e3a1bc2e (patch) | |
tree | 625cc152ed46b2bc7d4eafe17ba835137bbddb04 /Examples/lua/embed/example.c | |
parent | bd67f57921245470317e54403d78922d4d8258d1 (diff) | |
download | swig-079165abe2b10a8f10633a2e16d50006e3a1bc2e.tar.gz |
Convert to unix fileformat
Diffstat (limited to 'Examples/lua/embed/example.c')
-rw-r--r-- | Examples/lua/embed/example.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/Examples/lua/embed/example.c b/Examples/lua/embed/example.c index c6c6d7ba1..efd13f662 100644 --- a/Examples/lua/embed/example.c +++ b/Examples/lua/embed/example.c @@ -1,22 +1,22 @@ -/* File : example.c */
-
-#include <stdio.h>
-
-/* A global variable */
-double Foo = 3.0;
-
-/* Compute the greatest common divisor of positive integers */
-int gcd(int x, int y) {
- int g;
- g = y;
- while (x > 0) {
- g = x;
- x = y % x;
- y = g;
- }
- return g;
-}
-
-void greeting() {
- printf("Hello from the C function 'greeting'\n");
-}
+/* File : example.c */ + +#include <stdio.h> + +/* A global variable */ +double Foo = 3.0; + +/* Compute the greatest common divisor of positive integers */ +int gcd(int x, int y) { + int g; + g = y; + while (x > 0) { + g = x; + x = y % x; + y = g; + } + return g; +} + +void greeting() { + printf("Hello from the C function 'greeting'\n"); +} |