ARM Technical Support Knowledge Articles

INCLUDE FILES

Applies to: General Topics

Answer


Information in this article applies to:


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

 

Article last edited on: 2005-07-08 18:19:26

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential