사용자 정의 함수 > 구조 정의 > 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}
};