How to redesign #include <stdio.h> in C -
i working on project in c, in thinking cut short stdio.h
header file , keep code need.
how shall this? plus know whether cutting short make difference speed?
header files interface files. (usually) not contain implementation code bloat application. table of contents compiler library files named such crt.o
or libc.so
.
if want, can try forward-declaring standard functions yourself, example:
extern int printf( const char *, ... );
this practice frowned upon , may not supported well. note such functions may defined in standard headers macros (as standard library binary file extern
symbols), there may difference in performance or executable size, compared usual #include
.
Comments
Post a Comment