Understanding the UFUNC.C File
The code examples in the following sections demonstrate how to extend SQR with an initcap function.
The key to this process is an SQR source file called ufunc.c. This file contains a list of user-defined functions. It also contains comments with a description of the process of adding a function to SQR. Ufunc.c is in the lib subdirectory (LIBW in Microsoft Windows).
To add initcap to SQR, you must add it to a global array called userfuncs in ufunc.c.