I'm trying to make a programm that encrypts a string with crypt() using a key and then displays the result.
Here's what I have so far:
int main( int argc, char *argv)
char text = "text";
char key = "key";
strcpy( crypt( text, key), result);
Now when I try to compile it I get this with (under linux)
gcc crypt.c -o crypt -lcrypt
I get this warning:
warning: passing arg 1 of `strcpy' makes pointer from integer without a cast
What am I doing wrong here?