aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-10-21 15:38:00 +0200
committerMattias Andrée <maandree@kth.se>2018-10-21 18:15:34 +0200
commit5f5e216a4abae6860f40c6bedd37db275dbb92d0 (patch)
tree3f22ab92c57fbac30c14d548cd545ed1ec77f395 /man
parentm (diff)
downloadlibsimple-5f5e216a4abae6860f40c6bedd37db275dbb92d0.tar.gz
libsimple-5f5e216a4abae6860f40c6bedd37db275dbb92d0.tar.bz2
libsimple-5f5e216a4abae6860f40c6bedd37db275dbb92d0.tar.xz
Add rawmemcasechr and memrcasechr
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'man')
-rw-r--r--man/libsimple_memrcasechr.381
-rw-r--r--man/libsimple_memrchr.31
-rw-r--r--man/libsimple_rawmemcasechr.381
-rw-r--r--man/libsimple_rawmemchr.31
l---------man/memcasechr.3libsimple1
l---------man/memcasecmp.3libsimple1
l---------man/memcaseends.3libsimple1
l---------man/memcaseeq.3libsimple1
l---------man/memcasemem.3libsimple1
l---------man/memcasestarts.3libsimple1
l---------man/memrcasechr.3libsimple1
l---------man/memrcasemem.3libsimple1
l---------man/rawmemcasechr.3libsimple1
l---------man/rawmemrcasechr.3libsimple1
14 files changed, 174 insertions, 0 deletions
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 <libsimple.h>
+
+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 <libsimple.h>
+
+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