I want to use the crypt function in a program that I am making. I seem to be having troubles using it. Can someone point me in the right direction? (I have read the man crypt)

Thanks in advance.