The Algorithm Library is bundled with a small MDL function extension library
[4]AdditionalLibcFuncs which contains MDL functions
compatible with selected functions of the standard C library. This
library is aimed to provide only the most commonly needed functions of the
standard C libraries which might be useful for the scripting of any kind
of application. Application specific extension libraries can be easily
generated and managed in conjunction with the according application. All
functions contained in AdditionalLibcFuncs are briefly described
in Table B.1 and B.2. More detailed
informations can be found within the documentation of the standard C
library and the Posix standard definition.
Function | Description |
int rand () | This function returns successive pseudo-random numbers in the range from 0 (zero) to RAND_MAX The sequence of values returned depends on the seed value set with the srand function. Note that the obtained results value of RAND_MAX are heavily dependent on the underlying system libraries and are not comparable between different systems. |
MdlBool srand (int) | This function resets the random number generator of the rand function with the random seed value of its argument. |
MdlBool system (MdlString) | The system function passes the string parameter to the command line interpreter of the operating system, which interprets string as a command and executes it. |
Function | Description |
double atof (MdlString) | This function converts its string type argument up to the first character that is inconsistent with the format of a floating-point number to a parameter of the type double. |
int atoi (MdlString) | This function converts its string type argument up to the first character that is inconsistent with the format of an integer number to a parameter of the type int. |
MdlString ftoa (double) | This function converts its double type argument into its MdlString representation. |
MdlString itoa (int) | This function converts its int type argument into its MdlString representation. |
exit (int) | This function terminates the calling process, flushes all output streams, and returns its argument as exit status its parent process. |