I need to use system-specific functions, e.g. ftello()
(defined in stdio.h
as per POSIX standard).
I also need to use standard C++ features, e.g. std::sprintf()
(defined in cstdio
, as per ISO C++ standard).
AFAIK, including only <cstdio>
doesn't guarantee defining non-standard-C++ stuff, so I guess I have to include both.
I've read a long time ago that (for example) with gcc there may be problems with the include file order.
So, what is the correct order for including both <cstdio>
and <stdio.h>
?
I'm looking for a solution which is as cross-platform as possible (at least for gcc, suncc, intel C++/linux and mingw).
Thanks!