A method and apparatus executes an automated approach allowing access to a
standard shared library without requiring the user to create a custom
interface definition for library functions that a user wants to access
dynamically using a software application. In accordance with one
implementation, in an electronic device, a method of accessing a library
function from a dynamic environment includes the step of processing a
header file of the library function to create an interface to the library
function. The interface to the library function is created in the dynamic
environment. The user can invoke the process by calling the function from
the shared library, and the automated process takes the necessary steps
to execute the function.