TNS/E Native Application Conversion Guide
C and C++ Conversion Tasks
TNS/E Native Application Conversion Guide—529659-003
3-8
Replacing Calls to Obsolete C Library
Supplementary Functions
Table 3-1. Obsolete C Supplementary Functions (page 1 of 2)
Obsolete Function Suggested Replacement
_is_system_trap() Delete _is_system_trap(). Trap handling mechanism is
replaced with signals in native processes. See the
Guardian
Programmer’s Guide
for details.
iscsym() Write your own function iscsym() to check whether a
character is a valid character in a C identifier.
iscsymf() Write your own function iscsymf() to check whether a
character is a valid first character in a C identifier.
memswap() Replace memswap() with a series of calls to memcpy() to
swap the blocks of memory using a temporary buffer. The
order and type of parameters for these two functions are
different.
movmem() Replace movmem() with a call to memmove(). The order and
type of parameters for these two functions are different.
repmem() Replace repmen() with a series of calls to memcpy() to
copy the block of memory the required number of times. The
order and type of parameters for these two functions are
different.
setmem() Replace setmem() with a call to memset(). The order and
type of parameters for these two functions are different.
setnbuf() Replace setnbuf() with a call to setbuf() with a buffer
parameter set to NULL.
stcarg() Replace stcarg() with a call to strcspn(). The return
values for these two functions are different.
stccpy() Replace stccpy() with a call to strncpy(). The type of
parameters and the return value for these two functions are
different.
stcd_i() Replace stcd_i() with a call to strtol(). The order and
type of parameters and the return value for these two functions
are different.
stcd_l() Replace stcd_l() with a call to strtol(). The order and
type of parameters and the return value for these two functions
are different.
stch_i() Replace stch_i() with a call to strtol(). The order and
type of parameters and the return value for these two functions
are different.
stci_d() Replace stci_d() with a call to sprintf() with a %d
conversion specifier.
stcis() Replace stcis() with a call to strspn().
stcisn()
Replace stcisn() with a call to strcspn().
stclen() Replace stclen() with a call to strlen().










