diff options
Diffstat (limited to 'examples/gfcc/abs.c')
| -rw-r--r-- | examples/gfcc/abs.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/gfcc/abs.c b/examples/gfcc/abs.c new file mode 100644 index 000000000..947711c13 --- /dev/null +++ b/examples/gfcc/abs.c @@ -0,0 +1,20 @@ +int abs (int x){ + int y ; + { + if (x < 0){ + y = 0 - x ; + } + else { + y = x ; + } + } + return y ; + } ; +int main () { + int i ; + i = abs (16); + printf ("%d",i) ; + return ; + } ; + + |
