summaryrefslogtreecommitdiff
path: root/include/str.h
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-09 16:05:46 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-09 16:05:46 +0200
commit08ce54211ce4b8d6092321ca1b28773a680ddc45 (patch)
tree9cf7eb2702a408743d59e207e24f8fb1e5ada31d /include/str.h
parent795ffc5e62e8ba383575dbcd9943a580d4bd3358 (diff)
Added missing function prototype signatures.
Corrected socket_broadcast name to socket_broadcast4 in socket_if.h. Added const to fmt_str.
Diffstat (limited to 'include/str.h')
-rw-r--r--include/str.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/str.h b/include/str.h
index 0d74812..983b3fc 100644
--- a/include/str.h
+++ b/include/str.h
@@ -2,18 +2,17 @@
#define STR_H
/*
- * Revision 20170918, Kai Peter
- * - added 'str_copyb()', thanks Erwin Hoffmann
- * Revision 20170501, Kai Peter
- * - added '*str_append' and 'str_cat'
-*/
+ * Revision 20170918, Kai Peter
+ * - added 'str_copyb()', thanks Erwin Hoffmann
+ * Revision 20170501, Kai Peter
+ * - added '*str_append' and 'str_cat'
+ */
extern unsigned int str_copy(char *, const char *);
extern unsigned int str_copyb(char *, const char *, unsigned int);
extern int str_diff(const char *, const char *);
extern int str_diffn(const char *, const char *, unsigned int);
-//extern unsigned int str_len(char *); // --> this produces lot of warnings !!!
-extern unsigned int str_len();
+extern unsigned int str_len(const char *);
extern unsigned int str_chr(const char *, int);
extern unsigned int str_rchr(const char *, int);
extern int str_start(const char *, const char *);