Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/cpphs/tests/numbers

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#if 1
number (1) in if
#else
rejected number (1) in if
#endif

#if 0
wrongly accepted number (0) in if
#else
number (0) in if
#endif

#if eaf
false hex number in if
#else
rejected false hex number in if
#endif

#if 0x1
real hex number (0x1) in if
#else
rejected real hex number (0x1) in if
#endif

#if 0x00
wrongly accepted real hex number (0x00) in if
#else
hex number (0x00) in if
#endif

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.