User's Guide > Core: Utilities > Freeing String Outputs
Freeing String Outputs
Many Creo TOOLKIT functions provide outputs of non-fixed length strings or wide strings. These outputs must be freed using a special set of functions, because they have been allocated by a special function internally.
Note:
 
These functions must be only used for strings and string arrays output from Creo TOOLKIT functions. Check the function description to determine the function to use when freeing the output.
Functions Introduced:
ProStringFree()
ProWstringFree()
ProStringarrayFree()
ProWstringarrayFree()
ProStringproarrayFree()
ProWstringproarrayFree()
Use the functions ProStringFree() and ProWstringFree() to free a single char* or wchar_t* output from a Creo TOOLKIT function.
Use the functions ProStringarrayFree() and ProWstringarrayFree() to free a standard array of char* or wchar_t* output from a Creo TOOLKIT function.
Use the functions ProStringproarrayFree() and ProWstringproarrayFree() to free a ProArray of char* or wchar_t* output from a Creo TOOLKIT function.
這是否有幫助?