/********************************************************************* Mosel NL examples ================= file mydll.c ```````````` Implementation of the user function 'AreaInC' for polygon7.mos Compile this file to the dynamic library mydll.fct using the provided makefile. (c) 2012 Fair Issac Corporation Creation: 2012 *********************************************************************/ #include #include #include #include #ifdef _WIN32 #define XPRS_CC __stdcall #define XSLP_EXPORT __declspec(dllexport) #else #define XPRS_CC #define XSLP_EXPORT #endif XSLP_EXPORT double XPRS_CC AreaInC(double *Values, int *nArg) { int i; double Area; Area = 0; for (i=3;i