This sample demonstrates substituting custom memory allocation functions
mem_alloc()andmem_free()for the standard C runtime heap management functionsmalloc()andfree().
See instructions here on how to build this and other samples on your development platform. Once built, the sample can be run from the
\target\bindirectory:api_sql_01_c_api_allocatorsBut it is more instructive to run it in your development environment debugger, stepping through the code.