Important: The information in this document is obsolete and should not be used for new development.
OTCreateOptionString
Creates a string from a buffer containingTOption
structures.C INTERFACE
OSStatus OTCreateOptionString (const char* endptName, TOption** opt, void* bufEnd, char* string, size_t stringSize);C++ INTERFACE
None. C++ applications use the C interface to this function.PARAMETERS
endptName
- A constant specifying the name of the protocol for this option or options.
opt
- A pointer to a pointer to a buffer containing one or more
TOption
structures.bufEnd
- A pointer to the first byte of memory past the last option.
string
- A pointer to a buffer where the string is to be stored. You must allocate this buffer.
stringSize
- The length of the buffer where the string is to be stored. You must specify this value.
- function result
- See Appendix B.
DISCUSSION
You can use theOTCreateOptionString
function to parse through the options buffer returned by theret
parameter to theOTOptionMangement
function and create a string specifying option values that you can display.SPECIAL CONSIDERATIONS
This function is supplied solely as a debugging aid. You should not include the function in a production version of your application because there is no provision made for localizing string information.SEE ALSO
TheOTCreateOptions
function.