00001 /*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*-00002 * librsync -- dynamic caching and delta update in HTTP00003 *00004 * Copyright (C) 2000, 2001 by Martin Pool <mbp@sourcefrog.net>00005 *00006 * This program is free software; you can redistribute it and/or00007 * modify it under the terms of the GNU Lesser General Public License00008 * as published by the Free Software Foundation; either version 2.1 of00009 * the License, or (at your option) any later version.00010 *00011 * This program is distributed in the hope that it will be useful, but00012 * WITHOUT ANY WARRANTY; without even the implied warranty of00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU00014 * Lesser General Public License for more details.00015 *00016 * You should have received a copy of the GNU Lesser General Public00017 * License along with this program; if not, write to the Free Software00018 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.00019 */00020
00021 /** Return true if TIP is a prefix of ICEBERG. */00022 int isprefix(charconst *tip, charconst *iceberg);