TNS/E Native Application Conversion Guide
C and C++ Conversion Tasks
TNS/E Native Application Conversion Guide—529659-003
3-7
Replacing Calls to Obsolete C Library
Supplementary Functions
Example 3-1 shows the difference between using the new macros and the previous
macros to examine _cc_status.
Replacing Calls to Obsolete C Library
Supplementary Functions
The native C run-time library does not support the C library functions listed in
Table 3- 1. None of the obsolete functions are specified in the ISO/ANSI C Standard,
the X/OPEN XPG4 Specification, or the X/OPEN UNIX Specification. In most cases,
you can replace the obsolete function with another function and a few additional lines
of code.
Example 3-1. Examining _cc_status
Previous macros (TNS Programs Only)
_tal _extensible _cc_status READX ( ... );
#include <tal.h>
...
_cc_status CC;
CC = READX ( ... );
if (CC == CCL) {
...
} else if (CC == CCG) {
...
}
Current macros (TNS and Native Programs)
_tal _extensible _cc_status READX ( ... );
#include <tal.h>
...
_cc_status CC;
CC = READX ( ... );
if (_status_lt(CC)) {
...
} else if (_status_gt(CC)) {
...
}










