handouts/ho03.tex
changeset 213 9c2fa54c7c2d
parent 212 1d2744383b7a
child 218 bc1f7c82e1a8
equal deleted inserted replaced
212:1d2744383b7a 213:9c2fa54c7c2d
   140 
   140 
   141 \noindent This function copies data from a source \pcode{src}
   141 \noindent This function copies data from a source \pcode{src}
   142 to a destination \pcode{dst}. The important point is that it
   142 to a destination \pcode{dst}. The important point is that it
   143 copies the data until it reaches a zero-byte (\code{"\\0"}). 
   143 copies the data until it reaches a zero-byte (\code{"\\0"}). 
   144 
   144 
       
   145 \begin{figure}[p]
       
   146 \lstinputlisting[language=C]{../progs/C2.c}
       
   147 \caption{A suspicious login implementation.\label{C2}}
       
   148 \end{figure}
       
   149 
   145 \bigskip\bigskip
   150 \bigskip\bigskip
   146 \subsubsection*{A Crash-Course on GDB}
   151 \subsubsection*{A Crash-Course on GDB}
   147 
   152 
   148 \begin{itemize}
   153 \begin{itemize}
   149 \item \texttt{(l)ist n} -- listing the source file from line 
   154 \item \texttt{(l)ist n} -- listing the source file from line