\section{util/firmdl/mkimg.c File Reference}
\label{mkimg_8c}\index{util/firmdl/mkimg.c@{util/firmdl/mkimg.c}}
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$ctype.h$>$}\par
{\tt \#include \char`\"{}srec.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf IMAGE\_\-START}\ 0x8000
\item 
\#define {\bf IMAGE\_\-MAXLEN}\ 0x4000
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf srec\_\-load} (char $\ast$name, unsigned char $\ast$image, int maxlen, unsigned short $\ast$start)
\item 
char $\ast$ {\bf basename} (char $\ast$path)
\item 
char $\ast$ {\bf build\_\-image\_\-name} (char $\ast$dst, char $\ast$src)
\item 
int {\bf main} (int argc, char $\ast$$\ast$argv)
\begin{CompactList}\small\item\em the user {\bf main()}{\rm (p.\,\pageref{fontdesign_8c_a1})} \item\end{CompactList}\end{CompactItemize}


\subsection{Define Documentation}
\index{mkimg.c@{mkimg.c}!IMAGE_MAXLEN@{IMAGE\_\-MAXLEN}}
\index{IMAGE_MAXLEN@{IMAGE\_\-MAXLEN}!mkimg.c@{mkimg.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define IMAGE\_\-MAXLEN\ 0x4000}\label{mkimg_8c_a1}




Definition at line 35 of file mkimg.c.\index{mkimg.c@{mkimg.c}!IMAGE_START@{IMAGE\_\-START}}
\index{IMAGE_START@{IMAGE\_\-START}!mkimg.c@{mkimg.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define IMAGE\_\-START\ 0x8000}\label{mkimg_8c_a0}




Definition at line 34 of file mkimg.c.

\subsection{Function Documentation}
\index{mkimg.c@{mkimg.c}!basename@{basename}}
\index{basename@{basename}!mkimg.c@{mkimg.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ basename (char $\ast$ {\em path})}\label{mkimg_8c_a3}




Definition at line 138 of file mkimg.c.

Referenced by build\_\-image\_\-name(), and main().\index{mkimg.c@{mkimg.c}!build_image_name@{build\_\-image\_\-name}}
\index{build_image_name@{build\_\-image\_\-name}!mkimg.c@{mkimg.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ build\_\-image\_\-name (char $\ast$ {\em dst}, char $\ast$ {\em src})}\label{mkimg_8c_a4}




Definition at line 144 of file mkimg.c.

References basename().

Referenced by main().\index{mkimg.c@{mkimg.c}!main@{main}}
\index{main@{main}!mkimg.c@{mkimg.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int main (int {\em argc}, char $\ast$$\ast$ {\em argv})}\label{mkimg_8c_a5}


the user {\bf main()}{\rm (p.\,\pageref{fontdesign_8c_a1})} 



Definition at line 162 of file mkimg.c.

References basename(), build\_\-image\_\-name(), exit(), IMAGE\_\-MAXLEN, and srec\_\-load().\index{mkimg.c@{mkimg.c}!srec_load@{srec\_\-load}}
\index{srec_load@{srec\_\-load}!mkimg.c@{mkimg.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int srec\_\-load (char $\ast$ {\em name}, unsigned char $\ast$ {\em image}, int {\em maxlen}, unsigned short $\ast$ {\em start})}\label{mkimg_8c_a2}




Definition at line 49 of file mkimg.c.

References srec\_\-t::addr, srec\_\-t::count, srec\_\-t::data, exit(), IMAGE\_\-MAXLEN, IMAGE\_\-START, memcpy(), memset(), srec\_\-decode(), srec\_\-strerror(), and srec\_\-t::type.

Referenced by main().