00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "isprefix.h"
00022
00023
00024 int isprefix(char const *tip, char const *iceberg)
00025 {
00026 while (*tip) {
00027 if (*tip != *iceberg)
00028 return 0;
00029 tip++;
00030 iceberg++;
00031 }
00032
00033 return 1;
00034 }