1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
.\" placed in the public domain by Will Naylor -*- nroff -*-
.\" 1998-08-21 formatting added by Jim Van Zandt <jrv@vanzandt.mv.com>
.TH WNEQ 3 "August 23, 1998" "WNLIB" ""
.SH NAME
wn_streq, wn_streqnc, wn_inteq, wn_ptreq, eq, wn_memeq \- functions which determine equality (for hash tables)
.SH SYNOPSIS
.nf
.B #include <wn/wneq.h>
.sp
.B int wn_streq(char \fIs1\fP[],char \fIs2\fP[])
.sp
.B int wn_streqnc(char \fIs1\fP[],char \fIs2\fP[])
.sp
.B int wn_inteq(int \fIi1\fP,int \fIi2\fP)
.sp
.B int wn_ptreq(ptr \fIp1\fP,ptr \fIp2\fP)
.sp
.B int wn_ptrNULLeq(bool &\fIsuccess\fP,ptr \fIp1\fP,ptr \fIp2\fP)
.sp
.B int wn_memeq(ptr \fIm1\fP,ptr \fIm2\fP,int \fIlen\fP)
.SH DESCRIPTION
These routines are designed to assist building hash tables (with
the exception of \fBwn_streqnc\fP). They determine whether their arguments
are equal or not, and return \fBTRUE\fP if \fBeq\fPual, \fBFALSE\fP if not equal.
\fBwn_ptrNULLeq\fP sets \fIsuccess\fP to \fBTRUE\fP iff \fIp1\fP or \fIp2\fP is \fBNULL\fP.
If \fIp1\fP and \fIp2\fP are \fBNULL\fP, it returns \fBTRUE\fP. If \fIp1\fP is \fBNULL\fP but
\fIp2\fP is not \fBNULL\fP, it returns \fBFALSE\fP. If \fIp1\fP is not \fBNULL\fP but
\fIp2\fP is \fBNULL\fP, it returns \fBFALSE\fP. This function is useful for
constructing complicated linked structure \fBeq\fPuality tests where it
is possible for some pointers to be \fBNULL\fP.
\fBwn_streqnc\fP ignores case.
.\".SH DIAGNOSTICS
.\".SH BUGS
.SH "SEE ALSO"
wnhtbl "(3), " wncpy (3)
.SH AUTHOR
Will Naylor
|