aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-03-01 16:11:17 +0100
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-03-01 16:11:17 +0100
commit8d81ffef00f5cf2c267fb855715b76cdf004bc52 (patch)
treed1ffe2485627e8f64d6b1a908fad2ae872d1eee6 /src
parent2392a52c10fdb32e504cb76d5f1989df7a643655 (diff)
downloadstring2-8d81ffef00f5cf2c267fb855715b76cdf004bc52.tar.gz
string2-8d81ffef00f5cf2c267fb855715b76cdf004bc52.zip
Keep it simple
Diffstat (limited to 'src')
-rw-r--r--src/string2.c51
-rw-r--r--src/string2.h12
2 files changed, 0 insertions, 63 deletions
diff --git a/src/string2.c b/src/string2.c
deleted file mode 100644
index b356a67..0000000
--- a/src/string2.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/* See LICENSE file for copyright and license details. */
-
-#include <string.h>
-
-int
-strrgt(const char *str, const char *end)
-{
- int size_s1 = strlen(str);
- int size_s2 = strlen(end);
-
- int i = size_s1 - 1, j = size_s2 - 1;
-
- if (size_s2 > size_s1) {
- return 1;
- }
-
- for (; i >= 0 && j >= 0; i--, j--) {
- if (str[i] != end[j]) {
- return 1;
- }
- }
-
- return 0;
-}
-
-int
-strlft(const char *str, const char *end)
-{
- int size_s1 = strlen(str);
- int size_s2 = strlen(end);
-
- int i = 0;
-
- if (size_s2 > size_s1) {
- return 1;
- }
-
- for (; i < size_s2; i++) {
- if (str[i] != end[i]) {
- return 1;
- }
- }
-
- return 0;
-}
-
-char *
-string2libver(void)
-{
- return LIBVER;
-}
diff --git a/src/string2.h b/src/string2.h
deleted file mode 100644
index 9e10fd5..0000000
--- a/src/string2.h
+++ /dev/null
@@ -1,12 +0,0 @@
-/* See LICENSE file for copyright and license details. */
-
-#ifndef __STRING2_H__
-#define __STRING2_H__
-
-#include <string.h>
-
-int strrgt(const char *, const char *);
-int strlft(const char *, const char *);
-char *string2libver(void);
-
-#endif /* __STRING2_H__ */