カスタム関数 > 構造定義 > FUNCTIONINFO 構造
  
FUNCTIONINFO 構造
FUNCTIONINFO 構造を使用してカスタム関数を PTC Mathcad に登録します。この構造には名前に関する情報が含まれます。PTC Mathcad はこの名前によって、関数、関数パラメータの説明、引数、戻り値、および関数を実行するコードへのポインタを認識します。
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}
};