get_8c.tex
1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
\hypertarget{get_8c}{
\section{src/http/header/get.c File Reference}
\label{get_8c}\index{src/http/header/get.c@{src/http/header/get.c}}
}
{\ttfamily \#include $<$stdlib.h$>$}\par
{\ttfamily \#include $<$ctype.h$>$}\par
{\ttfamily \#include \char`\"{}http/header.h\char`\"{}}\par
Include dependency graph for get.c:
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item
char $\ast$ \hyperlink{get_8c_abed67d03f002ffb1a7cf94d641a80ca4}{httpHeaderGet} (const \hyperlink{structHttpHeader}{HttpHeader} header\mbox{[}$\,$\mbox{]}, int nheader, const char $\ast$name)
\end{DoxyCompactItemize}
\subsection{Function Documentation}
\hypertarget{get_8c_abed67d03f002ffb1a7cf94d641a80ca4}{
\index{get.c@{get.c}!httpHeaderGet@{httpHeaderGet}}
\index{httpHeaderGet@{httpHeaderGet}!get.c@{get.c}}
\subsubsection[{httpHeaderGet}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ httpHeaderGet (
\begin{DoxyParamCaption}
\item[{const {\bf HttpHeader}}]{header\mbox{[}$\,$\mbox{]}, }
\item[{int}]{nheader, }
\item[{const char $\ast$}]{name}
\end{DoxyParamCaption}
)}}
\label{get_8c_abed67d03f002ffb1a7cf94d641a80ca4}
Definition at line 31 of file get.c.
\begin{DoxyCode}
{
unsigned long hash = sdbm((unsigned char *)name);
HttpHeader found;
found = bsearch(&hash, header, nheader, sizeof(HttpHeader), comp);
return (NULL != found)? found->value : NULL;
}
\end{DoxyCode}
Here is the caller graph for this function: