(ANSI) C Reference – C Preprocessors

A look at the preprocessors that can be used in the C programming language.


#include <filename> ->  Include library file


#include “filename” ->  Include a user file


#define name text ->  Replacement text


#define name(var) text ->  Replacement macro


#undef name ->  Un-define


#if, #else, #endif, #elif ->  Conditional execution


#ifdef ->  Is name defined?


#ifndef ->  Is name not defined?


defined(name) ->  Name defined?


\ ->  Line continuation char


# ->  Quoted string in replace


## ->  Concatenate args and rescan


This entry was posted in C Preprocessors. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed. Tweet This! Tweet This! or use to share this post with others.

Comments are closed.