MCSTRING Structure

String values in custom Mathcad functions are passed as MCSTRING structures, as defined in mcadincl.h. The MCSTRING structure has one member:

If the result of your function is a MCSTRING structure, allocate memory for the character string using the MathcadAllocate function.