Anyone know the crypt() function? Why isn't there a memory leak?

From the man page: The return value points to static data whose content is overwritten by each call So this means it's not dynamically allocated - it's a single static allocation (just like a global variable).

From the man page: The return value points to static data whose content is overwritten by each call. So this means it's not dynamically allocated - it's a single static allocation (just like a global variable).

Thanks! I wasn't careful enough.. – Figo Jan 27 '10 at 4:18.

From the page you linked: The returned value points to the encrypted password, a series of 13 printable ASCII characters (the first two characters represent the salt itself). The return value points to static data whose content is overwritten by each call.

Thanks! I wasn't careful enough.. – Figo Jan 27 '10 at 4:28.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions