CatByte-io

16
reputation
4
#include <cs50.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>

int functioning(string cat, string c, string code);

int main(int argc, string argv[])
{
   // if the user gives too few or too many command line arguments, retrun error message
   if (argc != 3)
   {
    printf("Usage: ./me key1 key2 key3\n");
    return 1;
   }

   // if the key is invalid print error message
  if ((argv[1] != 'coffee') || (argv[1] != 'cats') || (argv[1] != 'coding'))
  {
    printf("Key must be 3 favorites in order to function\n");
    return 1;
  }

   int life = life(argv[1], argv[2], argv[3])

   return 0;
}