The following is my file named crack.c:
#include <stdio.h>
#define _XOPEN_SOURCE
#include <unistd.h>
void execute(char *alpha)
{
    char *beta = crypt(alpha);
    printf("%s", beta);
}
int main(int argc, string argv[]){
        ....
        execute(argv[1]);
        else{
            printf("You submitted %d command line arguments.  That's an issue.  You need to submit exactly one.", argc);
            return 1;
        }
}
The following is what I type into the command line:
jharvard@appliance (~/Dropbox/hacker2): clang -o crack -lcrypt crack.c
The following is what the command line spits back out at me:
crack.c:8:19: warning: implicit declaration of function 'crypt' is
invalid in
      C99 [-Wimplicit-function-declaration]
    string beta = crypt(alpha);
                  ^ crack.c:8:12: warning: incompatible integer to pointer conversion initializing
      'string' (aka 'char *') with an expression of type 'int'
      [-Wint-conversion]
    string beta = crypt(alpha);
           ^      ~~~~~~~~~~~~ 2 warnings generated.
Anyone know what's going on?
 
     
     
     
    