From fc40c033a083e2a4027fdbeecfb5853e6770a7c6 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Wed, 5 Jun 2013 17:26:50 +0530 Subject: c and cpp files isolated --- testapp/docs/main2.c | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 testapp/docs/main2.c (limited to 'testapp/docs/main2.c') diff --git a/testapp/docs/main2.c b/testapp/docs/main2.c deleted file mode 100755 index 3d28ff6..0000000 --- a/testapp/docs/main2.c +++ /dev/null @@ -1,28 +0,0 @@ -#include -#include - -extern int add(int, int, int); - -template -void check(T expect,T result) -{ - if (expect == result) - { - printf("Correct:\n Expected %d got %d \n",expect,result); - } - else - { - printf("Incorrect:\n Expected %d got %d \n",expect,result); - exit (0); - } -} - -int main(void) -{ - int result; - result = add(0,0,0); - check(0, result); - result = add(2,3,3); - check(8,result); - printf("All Correct\n"); -} -- cgit