Name
#undef
Synopsis
The #undef
directive cancels a
macro definition. This is necessary when the definition of a macro
needs to be changed, or when a function of the same name needs to be
called.
Syntax:
#undef name
No parameter list needs to be specified, even if the previously defined macro has parameters.
Example:
#include <ctype.h> #undef toupper . . . c = toupper(c); // Call the function toupper()
Get C Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.