National Instruments Drums 320685D-01 ユーザーズマニュアル
Chapter 5
UNIX Compiler/Linker Issues
©
National Instruments Corporation
5-9
LabWindows/CVI Programmer Reference Manual
contains the following macro definition so that
_cvi_realloc
replaces all references to
realloc
in your program.
#define realloc _cvi_realloc
Note
Object files you previously compiled using either older LabWindows/CVI headers
or Sun Solaris headers do not reference the replacement functions. You must
recompile your object files using LabWindows/CVI headers to obtain
ANSI-compliant behavior.
or Sun Solaris headers do not reference the replacement functions. You must
recompile your object files using LabWindows/CVI headers to obtain
ANSI-compliant behavior.
The following lists show the complete contents of the supplemental C library
libcfix.a
.
Replacement Functions
Additional Functions Not Found in Sun Solaris 1 libc
_assert
(used by
assert()
macro in
assert.h
)
labs
srand
fsetpos
fgetpos
atexit
difftime
div
ldiv
fpos
memmove
raise
rand
strerror
strtoul
Name
Header
Non-ANSI Behavior of Sun Version
_cvi_fflush
stdio.h
Does not handle NULL argument properly.
_cvi_fopen
stdio.h
Does not support binary open mode ("b").
Append open mode ("a") incorrect.
Append open mode ("a") incorrect.
_cvi_freopen
stdio.h
Same as fopen.
_cvi_realloc
stdlib.h
Does not handle NULL argument properly.
_cvi_strtol
stdlib.h
Does not set errno to
ERANGE
on error.
_cvi_system
stdlib.h
Does not handle NULL argument properly.
matherr
Default behavior prints error message.
00ProRef.book : 06chap05.fm Page 9 Monday, March 9, 1998 3:23 PM