Advertisement
CODE_TOLD_FAST

ISO_C/NULL_DEF

Feb 1st, 2020
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.68 KB | None | 0 0
  1. FILE: stddef.h
  2. ////////////////////////////////////////////////////////////////
  3.  
  4. /* A null pointer constant.  */
  5.  
  6. #if defined (_STDDEF_H) || defined (__need_NULL)
  7.     #undef NULL     /* in case <stdio.h> has defined it. */
  8.  
  9.     #ifdef __GNUG__
  10.         #define NULL __null
  11.     #else   /* G++ */
  12.         #ifndef __cplusplus
  13.             #define NULL ((void *)0) //:<<<NOT C++, But Plain C <<<<<<<<<<<<<<<< NOTICE_ME_SENPAI !!!!!!!!!!!!
  14.         #else   /* C++ */
  15.             #define NULL 0
  16.         #endif  /* C++ */
  17.     #endif  /* G++ */
  18. #endif  /* NULL not defined and <stddef.h> or need NULL.  */
  19. #undef  __need_NULL
  20.  
  21. ////////////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement