Skip to main content
2 votes
Accepted

In pset3, why do we write #include "bmp.h" and not #include <bmp.h>?

You are correct. From this C Preprocessor doc: 2.1 Include Syntax Both user and system header files are included using the preprocessing directive ‘#include’. It has two variants: #...
DinoCoderSaurus's user avatar
1 vote
Accepted

Why do we write #include "structs.h"?

This is not true, we can use structures without using that header file. It is possible that your source code specifically needs that file, but not in general. If we write: #include "structs.h" Means ...
MARS's user avatar
  • 5,179
1 vote

nanosleep function Implicit deceleration

I just had to include the header and function prototype to clear the warnings. #include <time.h> int nanosleep(const struct timespec *req, struct timespec *rem); This came directly from the ...
tgraupmann's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible