Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
521 B

21 years ago
.TH stralloc_starts 3
.SH NAME
stralloc_starts \- check if string is prefix of stralloc
.SH SYNTAX
.B #include <libowfat/stralloc.h>
21 years ago
int \fBstralloc_starts\fP(stralloc* \fIsa\fR,const char* \fIin\fR);
21 years ago
.SH DESCRIPTION
stralloc_starts returns 1 if the \\0-terminated string in \fIin\fR, without
21 years ago
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.
21 years ago
.SH "SEE ALSO"
str_starts(3)