home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / asmutil / ovl301.zip / FARM.C < prev    next >
Text File  |  1989-02-02  |  395b  |  22 lines

  1. char *strupr(char *str);
  2.  
  3. main(int argc, char *argv[])
  4. {
  5.     int i;
  6.  
  7.     if(argc>1 && !strcmp(strupr(argv[1]),"MACDONALD"))
  8.         printf("\nE-I-E-I-O!");    /* macdonald command line argument evokes an appropriate response */
  9.     for(i=0;i<10;i++){
  10.         farm();
  11.         cow(i);
  12.         printf(" rooting around at %d:00 in the morning",pig(i));
  13.         horse(i);
  14.         sheep(i);
  15.     }
  16. }
  17.  
  18. farm()
  19. {
  20.     printf("\nfarm");
  21. }
  22.