Benutzerdefinierte Funktionen > Strukturdefinitionen > Struktur FUNCTIONINFO
  
Struktur FUNCTIONINFO
Verwenden Sie die Struktur FUNCTIONINFO, um eine angepasste Funktion in PTC Mathcad zu registrieren. Diese Struktur enthält Information über den Namen, an dem PTC Mathcad die Funktion erkennt, die Beschreibung der Funktionsparameter, ihrer Argumente, ihres Rückgabewertes und des Zeigers zu dem Code, der die Funktion ausführt.
Beispiel
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}
};