best-practice on C header files with #ifndef #define #endif

Posted by guest on Stack Overflow See other posts from Stack Overflow or by guest
Published on 2010-05-30T16:06:36Z Indexed on 2010/05/30 16:12 UTC
Read the original article Hit count: 202

Filed under:
|
|

what is concerned best practice regarding the following "pattern"?

#ifndef BLAFOO_H
#define BLAFOO_H
/* ...
 * ...
 */
#endif /* BLAFOO_H */

how should i name the header in the #define directive? i've seen all from said BLAFOO_H to __BLAFOO_H to _BLAFOO_H_ etc..

© Stack Overflow or respective owner

Related posts about c

    Related posts about best-practices