libowfat/stralloc/stralloc_starts.c

10 lines
227 B
C
Raw Normal View History

2001-02-02 17:54:47 +00:00
#include "stralloc.h"
#include "byte.h"
#include "str.h"
extern int stralloc_starts(stralloc *sa,const unsigned char *in) {
register unsigned long int len=str_len(in);
2001-02-02 17:54:47 +00:00
return (len<=sa->len && !byte_diff(sa->s,len,in));
}