\doxysubsection{isprefix.\+c}
\label{isprefix_8c_source}\index{isprefix.c@{isprefix.c}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001 \textcolor{comment}{/*= -\/*-\/ c-\/basic-\/offset: 4; indent-\/tabs-\/mode: nil; -\/*-\/}}
\DoxyCodeLine{00002 \textcolor{comment}{ * librsync -\/-\/ dynamic caching and delta update in HTTP}}
\DoxyCodeLine{00003 \textcolor{comment}{ *}}
\DoxyCodeLine{00004 \textcolor{comment}{ * Copyright (C) 2000, 2001 by Martin Pool <mbp@sourcefrog.net>}}
\DoxyCodeLine{00005 \textcolor{comment}{ *}}
\DoxyCodeLine{00006 \textcolor{comment}{ * This program is free software; you can redistribute it and/or}}
\DoxyCodeLine{00007 \textcolor{comment}{ * modify it under the terms of the GNU Lesser General Public License}}
\DoxyCodeLine{00008 \textcolor{comment}{ * as published by the Free Software Foundation; either version 2.1 of}}
\DoxyCodeLine{00009 \textcolor{comment}{ * the License, or (at your option) any later version.}}
\DoxyCodeLine{00010 \textcolor{comment}{ *}}
\DoxyCodeLine{00011 \textcolor{comment}{ * This program is distributed in the hope that it will be useful, but}}
\DoxyCodeLine{00012 \textcolor{comment}{ * WITHOUT ANY WARRANTY; without even the implied warranty of}}
\DoxyCodeLine{00013 \textcolor{comment}{ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU}}
\DoxyCodeLine{00014 \textcolor{comment}{ * Lesser General Public License for more details.}}
\DoxyCodeLine{00015 \textcolor{comment}{ *}}
\DoxyCodeLine{00016 \textcolor{comment}{ * You should have received a copy of the GNU Lesser General Public}}
\DoxyCodeLine{00017 \textcolor{comment}{ * License along with this program; if not, write to the Free Software}}
\DoxyCodeLine{00018 \textcolor{comment}{ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.}}
\DoxyCodeLine{00019 \textcolor{comment}{ */}}
\DoxyCodeLine{00020 }
\DoxyCodeLine{00021 \textcolor{preprocessor}{\#include "{}config.h"{}}             \textcolor{comment}{/* IWYU pragma: keep */}}
\DoxyCodeLine{00022 \textcolor{preprocessor}{\#include "{}isprefix.h"{}}}
\DoxyCodeLine{00023 }
\DoxyCodeLine{00024 \textcolor{keywordtype}{int} isprefix(\textcolor{keywordtype}{char} \textcolor{keyword}{const} *tip, \textcolor{keywordtype}{char} \textcolor{keyword}{const} *iceberg)}
\DoxyCodeLine{00025 \{}
\DoxyCodeLine{00026     \textcolor{keywordflow}{while} (*tip) \{}
\DoxyCodeLine{00027         \textcolor{keywordflow}{if} (*tip != *iceberg)}
\DoxyCodeLine{00028             \textcolor{keywordflow}{return} 0;}
\DoxyCodeLine{00029         tip++;}
\DoxyCodeLine{00030         iceberg++;}
\DoxyCodeLine{00031     \}}
\DoxyCodeLine{00032 }
\DoxyCodeLine{00033     \textcolor{keywordflow}{return} 1;}
\DoxyCodeLine{00034 \}}

\end{DoxyCode}
