Keil Logo

GENERAL: INCLUDE FILES


Information in this article applies to:

  • C51 All Versions
  • C251 All Versions
  • C166 All Versions
  • CARM All Versions

QUESTION

I want to create include files in my project directory. How do I include them in my C files?

Should I use #include "filename" or #include <filename>?

ANSWER

To include files from the same directory in which your C file is located, use:

#include "filename.h"

To include files from the \INC directory, use:

#include <filename.h>

SEE ALSO

 

Last Reviewed: Friday, July 8, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.