Help a C newbie
Go to solution
Solved by reniat,
20 minutes ago, Manos said:just tried that and still nothing i think the problem is not in the malloc as when i run the program and type "add" it doesnt print anything the printfs' i think should have worked if the function was called properly
perhaps it could be that you're not calling the function. you are declaring a function of the same name instead with no body ![]()
Book *AddBook(Book *previous);
instead of
Book* pSomeBook = AddBook(pSomePreviousBook);

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now