![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
This technote provides information about how to modify the default behavior for the printf command from issuing a SIGSEGV to return a NULL when an error is encountered.
For more information about the printf command, see the Utilities Reference User Guide.
The purpose of this feature is for the following printf code to now generate a SIGSEGV for specific builds of lib/c/:
printf("%s",NULL)
Instead, the result is that it will print a NULL.
![]() |
A SIGSEGV will continue to be the result for other builds; only specific builds are affected. |
To enable this feature:
cd lib/c/ make clean make EXCLUDE_VARIANTLIST=wcc install
![]() |
Since you already compile with one of these build environment options specified, BUILDENV=iox or BUILDENV=ion, it is not necessary for you to also include it in the make command; however, you are allowed to do so. For example: make EXCLUDE_VARIANTLIST=wcc BUILDENV=iox install |
![]() |
![]() |
![]() |