Custom Functions > Structure Definitions > MCSTRING Structure
  
MCSTRING Structure
You pass string values in custom functions as MCSTRING structures. The MCSTRING structure has one member:
String -> str, the ANSI characters in the string
If the result of your function is a MCSTRING structure, allocate memory for the character string using the MathcadAllocate function.