> Well, the question is why if I call function create_author from within
> find_author , the pointer tmpAut is not updated and has the same
> "garbage value as after tmpAut declaration
It is not obvious from your code why this should be failing. Assuming you
have the correct headers in place (these are not merely C superstitions -
they really are needed, especially stdlib.h and string.h in this case), I
can't see why tmpAut would retain its value after the create_author call.
It should take either NULL or the result of the malloc in create_author.
I suggest you remove your "BB-tags" and post a complete, compilable program
that demonstrates the problem as simply as possible. We might then have a
fighting chance of helping you to discover what is going wrong.
"Usenet is a strange place" - dmr 29/7/1999 http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)