File: str_equal.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-- 410 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.TH str_equal 3
.SH NAME
str_equal \- compare two ASCIIZ strings
.SH SYNTAX
.B #include <libowfat/str.h>

size_t \fBstr_equal\fP(const char* \fIa\fR,const char* \fIb\fR);
.SH DESCRIPTION
\fBstr_equal\fR returns nonzero if \fIa\fR and \fIb\fR match up to and
including the first occurrence of \\0.

If the strings are different, str_equal does not read bytes past the
first difference.
.SH "SEE ALSO"
strlen(3)