Only put includes in a header if the header itself needs them.
Examples:
- Your function returns type
size_t. Then#include <stddef.h>in the header file. - Your function uses
strlen. Then#include <string.h>in the source file.
Only put includes in a header if the header itself needs them.
Examples:
size_t. Then #include <stddef.h> in the header file.strlen. Then #include <string.h> in the source file.