#define _XOPEN_SOURCE //DES cypher
#include <crypt.h> //
#include <cs50.h> //GetString, booleans, and string datatype
#include <stdio.h> //printf
#include <string.h> //strlen
#include <unistd.h> //DES cypher
int main (void)
{
printf("%s\n", crypt("passwd", 1000));
}
In the code above I am simply testing the crypt function, but it keeps throwing me an error. Clang tell s me that there is an "incompatible integer to pointer conversion." I don't understand how to use the crypt class, I've looked online, on the man pages, and tried code from other places on stackexchange but I can't seem to get it to work.
I linked a whole bunch of libraries because I didn't know what the error was.
Here is the error in question, along with the line I used to compile the code: