Is __attribute__((nonnull)) standardized in C

Viewed 2996

I want to know whether __attribute__((nonnull)) is standard in C or compiler specific. If it's compiler specific then, is there any alternative to do same with standard C?

I am trying to prevent static analyzer's possible null pointer dereference warning, but I don't want to make my code compiler dependent.

2 Answers

__attribute__(...) is never standard C.
No C standard ever defined __attribute__ to even exist.

Related