warning: passing argument 2 of ‘strcpy’ makes pointer from integer without a cast
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
It looks like something is wrong here. I think the ctime you are calling is not the one you think you are calling. That code works for me. ctime should be returning a char * so you shouldn't see the error you are seeing. The ctime you are calling appears to return an int. So the question is where is that ctime coming from. Have you included time.h?