Re: how to use the uci C api

I suggest you to check into the Lua UCI bindings, as they provide full UCI functions to Lua, and that the "Lua side" of it is understandable in C without prior Lua knowledge (package uci, file "lua/uci.c").