libowfat/stralloc/stralloc_starts.c

10 lines
207 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 char *in) {
2007-10-17 16:23:01 +00:00
register size_t len=str_len(in);
2001-02-02 17:54:47 +00:00
return (len<=sa->len && !byte_diff(sa->s,len,in));
}