From 5f5e216a4abae6860f40c6bedd37db275dbb92d0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 21 Oct 2018 15:38:00 +0200 Subject: Add rawmemcasechr and memrcasechr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- man/libsimple_memrcasechr.3 | 81 +++++++++++++++++++++++++++++++++++++++++++ man/libsimple_memrchr.3 | 1 + man/libsimple_rawmemcasechr.3 | 81 +++++++++++++++++++++++++++++++++++++++++++ man/libsimple_rawmemchr.3 | 1 + man/memcasechr.3libsimple | 1 + man/memcasecmp.3libsimple | 1 + man/memcaseends.3libsimple | 1 + man/memcaseeq.3libsimple | 1 + man/memcasemem.3libsimple | 1 + man/memcasestarts.3libsimple | 1 + man/memrcasechr.3libsimple | 1 + man/memrcasemem.3libsimple | 1 + man/rawmemcasechr.3libsimple | 1 + man/rawmemrcasechr.3libsimple | 1 + 14 files changed, 174 insertions(+) create mode 100644 man/libsimple_memrcasechr.3 create mode 100644 man/libsimple_rawmemcasechr.3 create mode 120000 man/memcasechr.3libsimple create mode 120000 man/memcasecmp.3libsimple create mode 120000 man/memcaseends.3libsimple create mode 120000 man/memcaseeq.3libsimple create mode 120000 man/memcasemem.3libsimple create mode 120000 man/memcasestarts.3libsimple create mode 120000 man/memrcasechr.3libsimple create mode 120000 man/memrcasemem.3libsimple create mode 120000 man/rawmemcasechr.3libsimple create mode 120000 man/rawmemrcasechr.3libsimple (limited to 'man') diff --git a/man/libsimple_memrcasechr.3 b/man/libsimple_memrcasechr.3 new file mode 100644 index 0000000..be5b748 --- /dev/null +++ b/man/libsimple_memrcasechr.3 @@ -0,0 +1,81 @@ +.TH LIBSIMPLE_MEMRCASECHR 3 2018-10-20 libsimple +.SH NAME +libsimple_memrcasechr \- find byte in memory +.SH SYNOPSIS +.nf +#include + +void *libsimple_memrcasechr(const void *\fIs\fP, int \fIc\fP, size_t \fIn\fP); + +#ifndef memrcasechr +# define memrcasechr libsimple_memrcasechr +#endif +.fi +.PP +Link with +.IR \-lsimple . +.SH DESCRIPTION +The +.BR libsimple_memrcasechr () +function scans the memory segment +.IR s , +with the size +.IR n , +for the last occurence of the byte +.I c +(it is converted to a +.BR char ). +.PP +The comparison is case-insensitive. +.SH RETURN VALUE +The +.BR libsimple_memrcasechr () +function returns the pointer +.I s +with a maximal offset such that +.IR tolower(*r)==tolower(c) , +where +.I r +is the returned pointer. +If no such offset exists, +.B NULL +is returned. +.SH ERRORS +The +.BR libsimple_memrcasechr () +function cannot fail. +.SH ATTRIBUTES +For an explanation of the terms used in this section, see +.BR attributes (7). +.TS +allbox; +lb lb lb +l l l. +Interface Attribute Value +T{ +.BR libsimple_memrcasechr () +T} Thread safety MT-Safe +T{ +.BR libsimple_memrcasechr () +T} Async-signal safety AS-Safe +T{ +.BR libsimple_memrcasechr () +T} Async-cancel safety AC-Safe +.TE +.SH EXAMPLES +None. +.SH APPLICATION USAGE +None. +.SH RATIONALE +None. +.SH FUTURE DIRECTIONS +None. +.SH NOTES +None. +.SH BUGS +None. +.SH SEE ALSO +.BR libsimple_memrchr (3), +.BR libsimple_rawmemrcasechr (3), +.BR libsimple_memrcasemem (3), +.BR libsimple_memcasechr (3) diff --git a/man/libsimple_memrchr.3 b/man/libsimple_memrchr.3 index 8fd74f7..958fbc9 100644 --- a/man/libsimple_memrchr.3 +++ b/man/libsimple_memrchr.3 @@ -75,6 +75,7 @@ None. .SH BUGS None. .SH SEE ALSO +.BR libsimple_memrcasechr (3), .BR libsimple_rawmemrchr (3), .BR libsimple_memrmem (3), .BR memchr (3) diff --git a/man/libsimple_rawmemcasechr.3 b/man/libsimple_rawmemcasechr.3 new file mode 100644 index 0000000..3759cd0 --- /dev/null +++ b/man/libsimple_rawmemcasechr.3 @@ -0,0 +1,81 @@ +.TH LIBSIMPLE_RAWMEMCASECHR 3 2018-10-20 libsimple +.SH NAME +libsimple_rawmemcasechr \- find byte in memory +.SH SYNOPSIS +.nf +#include + +void *libsimple_rawmemcasechr(const void *\fIs\fP, int \fIc\fP); + +#ifndef rawmemcasechr +# define rawmemcasechr libsimple_rawmemcasechr +#endif +.fi +.PP +Link with +.IR \-lsimple . +.SH DESCRIPTION +The +.BR libsimple_rawmemcasechr () +function scans the memory segment +.I s +for the first occurence of the byte +.I c +(it is converted to a +.BR char ). +.PP +The +.BR libsimple_rawmemcasechr () +function assumes there is at least one +occurence, its behaviour is undefined +if this is not the case. +.PP +The comparison is case-insensitive. +.SH RETURN VALUE +The +.BR libsimple_rawmemcasechr () +function returns the pointer +.I s +with a minimal offset such that +.IR tolower(*r)==tolower(c) , +where +.I r +is the returned pointer. +.SH ERRORS +The +.BR libsimple_rawmemcasechr () +function cannot fail. +.SH ATTRIBUTES +For an explanation of the terms used in this section, see +.BR attributes (7). +.TS +allbox; +lb lb lb +l l l. +Interface Attribute Value +T{ +.BR libsimple_rawmemcasechr () +T} Thread safety MT-Safe +T{ +.BR libsimple_rawmemcasechr () +T} Async-signal safety AS-Safe +T{ +.BR libsimple_rawmemcasechr () +T} Async-cancel safety AC-Safe +.TE +.SH EXAMPLES +None. +.SH APPLICATION USAGE +None. +.SH RATIONALE +None. +.SH FUTURE DIRECTIONS +None. +.SH NOTES +None. +.SH BUGS +None. +.SH SEE ALSO +.BR libsimple_rawmemchr (3), +.BR libsimple_rawmemrcasechr (3), +.BR libsimple_memcasechr (3) diff --git a/man/libsimple_rawmemchr.3 b/man/libsimple_rawmemchr.3 index 4126fbb..0425d9a 100644 --- a/man/libsimple_rawmemchr.3 +++ b/man/libsimple_rawmemchr.3 @@ -76,5 +76,6 @@ None. .SH BUGS None. .SH SEE ALSO +.BR libsimple_rawmemcasechr (3), .BR libsimple_rawmemrchr (3), .BR memchr (3) diff --git a/man/memcasechr.3libsimple b/man/memcasechr.3libsimple new file mode 120000 index 0000000..e7d10b2 --- /dev/null +++ b/man/memcasechr.3libsimple @@ -0,0 +1 @@ +libsimple_memcasechr.3 \ No newline at end of file diff --git a/man/memcasecmp.3libsimple b/man/memcasecmp.3libsimple new file mode 120000 index 0000000..275bff4 --- /dev/null +++ b/man/memcasecmp.3libsimple @@ -0,0 +1 @@ +libsimple_memcasecmp.3 \ No newline at end of file diff --git a/man/memcaseends.3libsimple b/man/memcaseends.3libsimple new file mode 120000 index 0000000..4068e05 --- /dev/null +++ b/man/memcaseends.3libsimple @@ -0,0 +1 @@ +libsimple_memcaseends.3 \ No newline at end of file diff --git a/man/memcaseeq.3libsimple b/man/memcaseeq.3libsimple new file mode 120000 index 0000000..0ec4ac0 --- /dev/null +++ b/man/memcaseeq.3libsimple @@ -0,0 +1 @@ +libsimple_memcaseeq.3 \ No newline at end of file diff --git a/man/memcasemem.3libsimple b/man/memcasemem.3libsimple new file mode 120000 index 0000000..a9c885d --- /dev/null +++ b/man/memcasemem.3libsimple @@ -0,0 +1 @@ +libsimple_memcasemem.3 \ No newline at end of file diff --git a/man/memcasestarts.3libsimple b/man/memcasestarts.3libsimple new file mode 120000 index 0000000..c450aff --- /dev/null +++ b/man/memcasestarts.3libsimple @@ -0,0 +1 @@ +libsimple_memcasestarts.3 \ No newline at end of file diff --git a/man/memrcasechr.3libsimple b/man/memrcasechr.3libsimple new file mode 120000 index 0000000..4337383 --- /dev/null +++ b/man/memrcasechr.3libsimple @@ -0,0 +1 @@ +libsimple_memrcasechr.3 \ No newline at end of file diff --git a/man/memrcasemem.3libsimple b/man/memrcasemem.3libsimple new file mode 120000 index 0000000..6b52d2c --- /dev/null +++ b/man/memrcasemem.3libsimple @@ -0,0 +1 @@ +libsimple_memrcasemem.3 \ No newline at end of file diff --git a/man/rawmemcasechr.3libsimple b/man/rawmemcasechr.3libsimple new file mode 120000 index 0000000..2379e2a --- /dev/null +++ b/man/rawmemcasechr.3libsimple @@ -0,0 +1 @@ +libsimple_rawmemcasechr.3 \ No newline at end of file diff --git a/man/rawmemrcasechr.3libsimple b/man/rawmemrcasechr.3libsimple new file mode 120000 index 0000000..8fd4d5c --- /dev/null +++ b/man/rawmemrcasechr.3libsimple @@ -0,0 +1 @@ +libsimple_rawmemrcasechr.3 \ No newline at end of file -- cgit v1.2.3-70-g09d2