static const char* greeting;
static const char*
set_greeting(cmd_parms *cmd, void* empty, char* text)
{
    greeting = text;
    return NULL;
}
command_rec hw_cmds[] = {
    { "SetGreeting", set_greeting, NULL, RSRC_CONF, TAKE1, "Set Greeting" },
    { NULL }
};

Example 2: Apache command processor (1.3 and 2.0).

Back to Article