Funciones personalizadas > Definiciones de estructura > Estructura FUNCTIONINFO
  
Estructura FUNCTIONINFO
Utilice la estructura FUNCTIONINFO para registrar una función personalizada en PTC Mathcad. Esta estructura contiene información sobre el nombre por el que PTC Mathcad reconoce la función, la descripción de los parámetros de la función, sus argumentos, su valor de retorno y el puntero al código que la ejecuta.
Ejemplo
FUNCTIONINFO Multiply =
{
// The function name, as it should appear in Mathcad
"Multiply",
// The function arguments "a,M",
// A brief description of the function
"Returns the product of the scalar a and the matrix M",
// The call to your code
(LPCFUNCTION)MyCFunctionname;
// The type of the result
COMPLEX_ARRAY,
// The number and type of the arguments
2,
{COMPLEX_SCALAR, COMPLEX_ARRAY}
};