OTSetAddressFromNBPString
Copies an NBP name string into an NBP address buffer.C INTERFACE
size_t OTSetAddressFromNBPString (UInt8* addrBuf, const char* nbpName, SInt32 len);C++ INTERFACES
None. C++ applications use the C interface to this function.PARAMETERS
addrBuf- A pointer to the NBP address buffer in which to store the NBP name string.
nbpName- A pointer to the NBP name string you wish to copy into the buffer.
len- The number of characters to copy.
DESCRIPTION
TheOTSetAddressFromNBPStringfunction copies the string indicated by thenbpNameparameter into the buffer indicated by theaddrBufparameter. Thelenparameter indicates the number of characters to copy. A value of -1 copies the entirenbpNamestring. The function returns the number of bytes actually copied.SEE ALSO
The NBP address structure is described in the section "The NBP Address Structure," beginning on page 10-17.To copy the contents of an NBP entity into an NBP address structure, use the
OTSetAddressFromNBPEntityfunction (page 10-27).
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help