Fonctions personnalisées > Définitions de structures > Structure FUNCTIONINFO
  
Structure FUNCTIONINFO
Utilisez la structure FUNCTIONINFO pour enregistrer une fonction personnalisée avec PTC Mathcad. Cette structure contient des informations sur le nom par lequel PTC Mathcad reconnaît les paramètres de fonction, la description des paramètres de fonction, ses arguments, sa valeur renvoyée et le pointeur vers le code qui exécute la fonction.
Exemple
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}
};