From 6099ce5acfaffc60fd832723a142e3d2719dae8c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 21 Oct 2018 18:25:16 +0200 Subject: Add rawmemrcasechr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- man/libsimple_memends.3 | 2 +- man/libsimple_memeq.3 | 2 +- man/libsimple_memmem.3 | 2 +- man/libsimple_memrcasechr.3 | 2 +- man/libsimple_memrchr.3 | 2 +- man/libsimple_memrmem.3 | 2 +- man/libsimple_memstarts.3 | 2 +- man/libsimple_rawmemcasechr.3 | 2 +- man/libsimple_rawmemchr.3 | 2 +- man/libsimple_rawmemrcasechr.3 | 83 ++++++++++++++++++++++++++++++++++++++++++ man/libsimple_rawmemrchr.3 | 3 +- 11 files changed, 94 insertions(+), 10 deletions(-) create mode 100644 man/libsimple_rawmemrcasechr.3 (limited to 'man') diff --git a/man/libsimple_memends.3 b/man/libsimple_memends.3 index 8ab4f81..201788e 100644 --- a/man/libsimple_memends.3 +++ b/man/libsimple_memends.3 @@ -1,4 +1,4 @@ -.TH LIBSIMPLE_MEMENDS 3 2018-10-20 libsimple +.TH LIBSIMPLE_MEMENDS 3 2018-10-21 libsimple .SH NAME libsimple_memends \- checks end of memory .SH SYNOPSIS diff --git a/man/libsimple_memeq.3 b/man/libsimple_memeq.3 index 1deca9c..0b9ce1e 100644 --- a/man/libsimple_memeq.3 +++ b/man/libsimple_memeq.3 @@ -1,4 +1,4 @@ -.TH LIBSIMPLE_MEMEQ 3 2018-10-20 libsimple +.TH LIBSIMPLE_MEMEQ 3 2018-10-21 libsimple .SH NAME libsimple_memeq \- check two memory segments for equality .SH SYNOPSIS diff --git a/man/libsimple_memmem.3 b/man/libsimple_memmem.3 index 15437cd..05f9f37 100644 --- a/man/libsimple_memmem.3 +++ b/man/libsimple_memmem.3 @@ -1,4 +1,4 @@ -.TH LIBSIMPLE_MEMMEM 3 2018-10-20 libsimple +.TH LIBSIMPLE_MEMMEM 3 2018-10-21 libsimple .SH NAME libsimple_memmem \- find byte string in memory .SH SYNOPSIS diff --git a/man/libsimple_memrcasechr.3 b/man/libsimple_memrcasechr.3 index be5b748..caf7868 100644 --- a/man/libsimple_memrcasechr.3 +++ b/man/libsimple_memrcasechr.3 @@ -1,4 +1,4 @@ -.TH LIBSIMPLE_MEMRCASECHR 3 2018-10-20 libsimple +.TH LIBSIMPLE_MEMRCASECHR 3 2018-10-21 libsimple .SH NAME libsimple_memrcasechr \- find byte in memory .SH SYNOPSIS diff --git a/man/libsimple_memrchr.3 b/man/libsimple_memrchr.3 index 958fbc9..3aa2214 100644 --- a/man/libsimple_memrchr.3 +++ b/man/libsimple_memrchr.3 @@ -1,4 +1,4 @@ -.TH LIBSIMPLE_MEMRCHR 3 2018-10-20 libsimple +.TH LIBSIMPLE_MEMRCHR 3 2018-10-21 libsimple .SH NAME libsimple_memrchr \- find byte in memory .SH SYNOPSIS diff --git a/man/libsimple_memrmem.3 b/man/libsimple_memrmem.3 index 8ee94c2..f7d9945 100644 --- a/man/libsimple_memrmem.3 +++ b/man/libsimple_memrmem.3 @@ -1,4 +1,4 @@ -.TH LIBSIMPLE_MEMRMEM 3 2018-10-20 libsimple +.TH LIBSIMPLE_MEMRMEM 3 2018-10-21 libsimple .SH NAME libsimple_memrmem \- find byte string in memory .SH SYNOPSIS diff --git a/man/libsimple_memstarts.3 b/man/libsimple_memstarts.3 index 13713a2..f031837 100644 --- a/man/libsimple_memstarts.3 +++ b/man/libsimple_memstarts.3 @@ -1,4 +1,4 @@ -.TH LIBSIMPLE_MEMSTARTS 3 2018-10-20 libsimple +.TH LIBSIMPLE_MEMSTARTS 3 2018-10-21 libsimple .SH NAME libsimple_memstarts \- checks beginning of memory .SH SYNOPSIS diff --git a/man/libsimple_rawmemcasechr.3 b/man/libsimple_rawmemcasechr.3 index 3759cd0..4c3129c 100644 --- a/man/libsimple_rawmemcasechr.3 +++ b/man/libsimple_rawmemcasechr.3 @@ -1,4 +1,4 @@ -.TH LIBSIMPLE_RAWMEMCASECHR 3 2018-10-20 libsimple +.TH LIBSIMPLE_RAWMEMCASECHR 3 2018-10-21 libsimple .SH NAME libsimple_rawmemcasechr \- find byte in memory .SH SYNOPSIS diff --git a/man/libsimple_rawmemchr.3 b/man/libsimple_rawmemchr.3 index 0425d9a..79b480e 100644 --- a/man/libsimple_rawmemchr.3 +++ b/man/libsimple_rawmemchr.3 @@ -1,4 +1,4 @@ -.TH LIBSIMPLE_RAWMEMCHR 3 2018-10-20 libsimple +.TH LIBSIMPLE_RAWMEMCHR 3 2018-10-21 libsimple .SH NAME libsimple_rawmemchr \- find byte in memory .SH SYNOPSIS diff --git a/man/libsimple_rawmemrcasechr.3 b/man/libsimple_rawmemrcasechr.3 new file mode 100644 index 0000000..389b332 --- /dev/null +++ b/man/libsimple_rawmemrcasechr.3 @@ -0,0 +1,83 @@ +.TH LIBSIMPLE_RAWMEMRCASECHR 3 2018-10-21 libsimple +.SH NAME +libsimple_rawmemrcasechr \- find byte in memory +.SH SYNOPSIS +.nf +#include + +void *libsimple_rawmemrcasechr(const void *s, int c, size_t n); + +#ifndef rawmemrcasechr +# define rawmemrcasechr libsimple_rawmemrcasechr +#endif +.fi +.PP +Link with +.IR \-lsimple . +.SH DESCRIPTION +The +.BR libsimple_rawmemrcasechr () +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 +.BR libsimple_rawmemrcasechr () +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_rawmemrcasechr () +function returns the pointer +.I s +with a maximal offset such that +.IR tolower(*r)==tolower(c) , +where +.I r +is the returned pointer. +.SH ERRORS +The +.BR libsimple_rawmemrcasechr () +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_rawmemrcasechr () +T} Thread safety MT-Safe +T{ +.BR libsimple_rawmemrcasechr () +T} Async-signal safety AS-Safe +T{ +.BR libsimple_rawmemrcasechr () +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_rawmemrchr (3), +.BR libsimple_memrcasechr (3), +.BR libsimple_rawmemcasechr (3) diff --git a/man/libsimple_rawmemrchr.3 b/man/libsimple_rawmemrchr.3 index 198daa6..f4ae624 100644 --- a/man/libsimple_rawmemrchr.3 +++ b/man/libsimple_rawmemrchr.3 @@ -1,4 +1,4 @@ -.TH LIBSIMPLE_RAWMEMRCHR 3 2018-10-20 libsimple +.TH LIBSIMPLE_RAWMEMRCHR 3 2018-10-21 libsimple .SH NAME libsimple_rawmemrchr \- find byte in memory .SH SYNOPSIS @@ -78,5 +78,6 @@ None. .SH BUGS None. .SH SEE ALSO +.BR libsimple_rawmemrcasechr (3), .BR libsimple_memrchr (3), .BR libsimple_rawmemchr (3) -- cgit v1.2.3-70-g09d2