API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IHEAP_STRDUP()

Brew Release
Brew MP 1.0.2
See Also
Description
This function duplicates a given string. It allocates memory for the new string, copies the contents of the incoming string into the new string, and returns the new string.
Use of this method is discouraged. Use STRDUP() instead.
Params
pIHeap
[]:
Pointer to the IHeap interface object.
pszIn
[]:
Pointer to the string that needs to be duplicated.
Interface
  • IHEAP
Prototype
  • AECHAR * IHEAP_StrDup(IHeap * pIHeap, AECHAR * pszIn); 
    
Return
  • Pointer to the duplicated string : if successful. NULL : if the function fails.
Side Effect
  • If the heap cannot immediately satisfy the request, this call may send a notification to apps in the system asking them to release unneeded memory; if this doesn't free up enough memory, background applications may be closed in order to satisfy the request.
Comments
Use of this method is discouraged. Use STRDUP() instead.