Advertisement
TwisterMike

main.c

Feb 16th, 2020
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. /*Group 2 Program 2
  2. Paul Maclean- mac7537@calu.edu
  3. Mike Gorse- gor9632@calu.edu
  4. Robert Breckenridge- bre6896@calu.edu
  5. Chase Smith- smi8808@calu.edu
  6.  
  7. CSC 460
  8. Language Translations
  9. */
  10.  
  11. #include "file_util.h"
  12. #include "scanner.h"
  13.  
  14.  
  15.  
  16. file_outcome init(int argc, char* argv[]) {
  17. file_outcome fileCheck = openFiles(argc, argv);
  18.  
  19. if (fileCheck == cont)
  20. {
  21. fputs("The temp", TmpFile);
  22. }
  23.  
  24. return fileCheck;
  25. }
  26.  
  27. void cleanup() {
  28. //closes files
  29. closeFiles();
  30. }
  31.  
  32. int main(int argc, char* argv[]) {
  33.  
  34. if (init(argc,argv) == cont) {
  35. printf("\nScanning File\n");
  36. scanner(InpFile);
  37. cleanup();
  38. printf("Scan Complete\n");
  39. }
  40. else
  41. {
  42. printf("Init has failed. No scanner for you.");
  43. }
  44.  
  45.  
  46.  
  47. return 0;
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement