Hello,
I recently started using Code::Blocks 16.01 after my C project became too big to develop comfortably in Notepad++. One of the features that are really useful in NP++ is that it's aware of the C standard library and provides function prototypes with argument types and names when typing "memset(" etc.
Now, to get this type of behaviour in C::B, I figured I had to add the include folder to the compiler search path (I'm using GCC 6.1.0 from msys2/mingw). So far, so good. What it shows me now is this: "char* memset()". I guess it fails to properly parse the header, since it's written in a slightly convoluted way...
_PTR _EXFUN(memmove,(_PTR, const _PTR, size_t));
_PTR _EXFUN(memset,(_PTR, int, size_t));
char *_EXFUN(strcat,(char *__restrict, const char *__restrict));
I also tried MSVC headers, but there it's even worse with 50 annotations for every function.
Is there any easy way to get IDE-friendly headers, preferably even with argument names?
Try to put those content in the main.c file of your project. (Note main.c is the only source file in your project).
#define _EXFUN(name, proto) __cdecl name proto
FILE * _EXFUN(fopen, (const char *__restrict _name, const char *__restrict _type));
Now, after that, type "fopen", and see whether it will prompt the correct auto completion. It works fine here in my C::B.