How to install new units (i mean includes ex: stdio.h) for my C, and how to download more?
A:
You're looking for libraries. The headers (normally) just contain information to tell the compiler about the content of the library. There are quite a few C libraries to be found, covering all sorts of different topics. Of course, SourceForge isn't the only place to look -- Github and Google code would be a couple more obvious ones.
Jerry Coffin
2010-02-25 20:20:04
A:
put the header file on the same folder as your main source file, ex:
/folder /-->main.c
-->function.h -->function.c
then on main.c include it by writing :
#include "function.h"
the quotes are used to include a header file that's on the same folder as your c source file u can also write your own and include them like above.
redouane
2010-02-25 20:21:11