The Bfv API Functions

Miscellaneous Functions and Macros

Some administration functions and macros cannot be classified with other functions, but are useful in various ways. For example:

„_dll... functions for use on Windows® operating systems. These functions call standard C library functions such as fopen, fclose, fread, and fwrite; their arguments use the runtime library linked with the DLL.

„The getopt function parses command line options in a UNIX environment. Most of the sample applications/utilities use this function (see Sample Applications and Utilities on page 127).

„The BfvMemAllocFuncSet function allows you to write your own functions to dynamically allocate and free memory instead of using the Bfv API functions to do so.

„The sleep macro lets you write applications that sleep for a defined period of time (in seconds). This macro is only defined for environments that do not have built-in sleep functions.

November 2009

35

Page 35
Image 35
Dialogic 6.2 manual Miscellaneous Functions and Macros