S
santosh
Chris said:The declarations /of the functions/, which is what I was referring
to. santosh had said, referring to your:
| int malloc_check(char *in);
this:
| Although legal, don't place declarations within functions. Place them
| outside of any function and before that function is called in the
| source file. Generally, it's good practise to declare functions and
| other objects right after the #include for header files and macro
| definitions. In larger and multi-module projects, it would be better to
| encapsulate them into a common header file and include that.
And you replied:
| Yes, I did because I placed my functions in wrong order...
to which I said:
Looking back it's probably wasn't immediately clear that it
was specifically declarations /of functions/ that santosh was
talking about.
Yes, I should've been more precise. Oh well, since then others have
clarified the confusion.