mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-06 17:52:51 -06:00
changed names of resource-1.3; added a note on homepage on release
This commit is contained in:
20
old-examples/gfcc/compiler/abs.c
Normal file
20
old-examples/gfcc/compiler/abs.c
Normal file
@@ -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 ;
|
||||
} ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user