|
server 0.0.1
basicserverinfrastructure
|
#include <stdlib.h>#include <ctype.h>#include "http/header.h"
Go to the source code of this file.
Functions | |
| char * | httpHeaderGet (const HttpHeader header[], int nheader, const char *name) |
| char* httpHeaderGet | ( | const HttpHeader | header[], |
| int | nheader, | ||
| const char * | name | ||
| ) |
Definition at line 31 of file get.c.
{
unsigned long hash = sdbm((unsigned char *)name);
HttpHeader found;
found = bsearch(&hash, header, nheader, sizeof(HttpHeader), comp);
return (NULL != found)? found->value : NULL;
}
