Returns a list of cookies
#include <cgi.h> char **cgiGetCookies (s_cgi *parms);
This routine returns a NULL terminated array of names of cookies that were transmitted by the client. To get the value of a cookie you'll have to use cgiGetCookie(3). To free the memory allocated for the array, use cgiFreeList(3).
On success a NULL terminated array of strings is returned. The last element is set to NULL. If an error occurred or if no cookies were available NULL is returned.
This CGI library is written by Martin Schulze <[email protected]>. If you have additions or improvements please get in touch with him.