main.c (540B)
1 #include "demo_menu.h" 2 #include "stamen.h" 3 4 #include <stdio.h> 5 #include <stdlib.h> 6 7 int operation1(void) { 8 printf("operation 1\n"); 9 printf("Some operation is done\n"); 10 return 1; 11 } 12 13 int operation2(void) { 14 printf("operation 2\n"); 15 printf("Some other operation is done\n"); 16 return 1; 17 } 18 19 int operation3(void) { 20 printf("operation 3\n"); 21 printf("Yet another operation is done\n"); 22 return 1; 23 } 24 25 int finish(void) { 26 printf("finishing...\n"); 27 exit(0); 28 } 29 30 int main(void) { 31 menu_main(0); 32 return 0; 33 }