c - string.h header in the file with the function main -


i have program several .c , .h files. in 1 of .c files using function strcmp(). adding in file header string.h

is string.h header in file function main required?

thanks!

if translation unit containing function main not use function strcmp or other declaration header <string.h> inclusion of header in translation unit redundant , confuses readers.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -