root/doc_inner/doxygen/latex/cmem_8h_source.tex

/* [<][>][^][v][top][bottom][index][help] */
\doxysection{cmem.\+h}
\label{cmem_8h_source}\index{include/cmem.h@{include/cmem.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#ifndef\ YACASL2\_CMEM\_H\_INCLUDED}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#define\ YACASL2\_CMEM\_H\_INCLUDED}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ \textcolor{preprocessor}{\#include\ <stdio.h>}}
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ <stdlib.h>}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#include\ <string.h>}}
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#include\ <assert.h>}}
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#include\ <stdbool.h>}}
\DoxyCodeLine{00009\ }
\DoxyCodeLine{00013\ \textcolor{preprocessor}{\#ifndef\ ARRAYSIZE}}
\DoxyCodeLine{00014\ \textcolor{preprocessor}{\#define\ ARRAYSIZE(array)\ (sizeof(array)/sizeof(array[0]))}}
\DoxyCodeLine{00015\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00016\ }
\DoxyCodeLine{00020\ \textcolor{preprocessor}{\#ifndef\ FREE}}
\DoxyCodeLine{00021\ \textcolor{preprocessor}{\#define\ FREE(ptr)\ \{free(ptr);\ ptr\ =\ NULL;\}}}
\DoxyCodeLine{00022\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00023\ }
\DoxyCodeLine{00032\ \textcolor{keywordtype}{void}\ *malloc\_chk(\textcolor{keywordtype}{size\_t}\ size,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *tag);}
\DoxyCodeLine{00033\ }
\DoxyCodeLine{00043\ \textcolor{keywordtype}{void}\ *calloc\_chk(\textcolor{keywordtype}{size\_t}\ nmemb,\ \textcolor{keywordtype}{size\_t}\ size,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *tag);}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00053\ \textcolor{keywordtype}{char}\ *strdup\_chk(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *s,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *tag);}
\DoxyCodeLine{00054\ }
\DoxyCodeLine{00064\ \textcolor{keywordtype}{char}\ *strndup\_chk(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *s,\ \textcolor{keywordtype}{size\_t}\ len,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *tag);}
\DoxyCodeLine{00065\ }
\DoxyCodeLine{00071\ \textcolor{keywordtype}{void}\ strip\_end(\textcolor{keywordtype}{char}\ *s);}
\DoxyCodeLine{00072\ }
\DoxyCodeLine{00078\ \textcolor{keywordtype}{void}\ strip\_casl2\_comment(\textcolor{keywordtype}{char}\ *s);}
\DoxyCodeLine{00079\ }
\DoxyCodeLine{00087\ \textcolor{keywordtype}{char}\ *strrev(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *s);}
\DoxyCodeLine{00088\ }
\DoxyCodeLine{00089\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}

/* [<][>][^][v][top][bottom][index][help] */