libowfat/stralloc/stralloc_starts.3

16 lines
521 B
Groff
Raw Normal View History

2001-02-02 17:54:47 +00:00
.TH stralloc_starts 3
.SH NAME
stralloc_starts \- check if string is prefix of stralloc
.SH SYNTAX
.B #include <libowfat/stralloc.h>
2001-02-02 17:54:47 +00:00
int \fBstralloc_starts\fP(stralloc* \fIsa\fR,const char* \fIin\fR);
2001-02-02 17:54:47 +00:00
.SH DESCRIPTION
2002-10-28 20:15:03 +00:00
stralloc_starts returns 1 if the \\0-terminated string in \fIin\fR, without
2001-02-02 17:54:47 +00:00
the terminating \\0, is a prefix of the string stored in \fIsa\fR. Otherwise
it returns 0. \fIsa\fR must already be allocated.
.SH "RETURN VALUE"
1 if \fIin\fR is a prefix of \fIsa\fR, otherwise 0.
2001-02-02 17:54:47 +00:00
.SH "SEE ALSO"
str_starts(3)