Ok, after a lot of headaches and making questions on ##c freenode
channel I found out what that is.

The structure is a NULL-terminated array / table. It was declared like this:

static const handler_rec hw_handlers[] = {
   { "hw-app", hw_handle_req },
   { NULL }
};

But that is just the short declaration for something like this:

static const handler_rec hw_handlers[] = {
   { "hw-app", hw_handle_req },
   { NULL, NULL }
};


So it´s an array of size 2, where the second element is filled with
NULLs, but it will be interpreted as an array of size 1, because the
last element marks the end of the array.

--
Felipe Monteiro de Carvalho
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to