Funzioni personalizzate > Definizioni di strutture > Struttura FUNCTIONINFO
  
Struttura FUNCTIONINFO
Utilizzare la struttura FUNCTIONINFO per registrare una funzione personalizzata in PTC Mathcad. Questa struttura contiene informazioni sul nome tramite il quale PTC Mathcad riconosce la funzione, la descrizione dei parametri della funzione, i relativi argomenti, il valore restituito e il puntatore al codice che esegue la funzione.
Esempio
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}
};