summaryrefslogtreecommitdiff
path: root/ROMs/hello_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'ROMs/hello_c.c')
-rw-r--r--ROMs/hello_c.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/ROMs/hello_c.c b/ROMs/hello_c.c
index 3310b6b..839c12d 100644
--- a/ROMs/hello_c.c
+++ b/ROMs/hello_c.c
@@ -1,8 +1,9 @@
+int add(int a, int b)
+{
+ return a + b;
+}
+
int main()
{
- //comment
- int a = 5;
- if (a == 5)
- return 99;
- return 0;
+ return add(1, 2);
} \ No newline at end of file