File: stralloc_starts.3

package info (click to toggle)
libowfat 0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,288 kB
  • sloc: ansic: 20,181; makefile: 16
file content (15 lines) | stat: -rw-r--r-- 521 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.TH stralloc_starts 3
.SH NAME
stralloc_starts \- check if string is prefix of stralloc
.SH SYNTAX
.B #include <libowfat/stralloc.h>

int \fBstralloc_starts\fP(stralloc* \fIsa\fR,const char* \fIin\fR);
.SH DESCRIPTION
stralloc_starts returns 1 if the \\0-terminated string in \fIin\fR, without
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.
.SH "SEE ALSO"
str_starts(3)