I am using the below code that i found somewhere in the net and i am getting an error when i try to build it. The compilation is ok.
Here is the error:
You've to add -lcrypt when compiling... Imagine the source file is called crypttest.c, you'll do:
cc -lcrypt -o crypttest crypttest.c