Question 13.24

I'm trying to port this old program. Why do I get ``undefined external'' errors for some library functions?


Some old or semistandard functions have been renamed or replaced over the years;
if you need:/you should instead:

index
use strchr.
rindex
use strrchr.
bcopy
use memmove, after interchanging the first and second arguments (see also question 11.25).
bcmp
use memcmp.
bzero
use memset, with a second argument of 0.

Contrariwise, if you're using an older system which is missing the functions in the second column, you may be able to implement them in terms of, or substitute, the functions in the first.

References: PCS Sec. 11


Read sequentially: prev next up top


This page by Steve Summit // Copyright 1995 // mail feedback