summaryrefslogtreecommitdiff
path: root/include/str.h
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-09 14:41:53 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-09 14:41:53 +0200
commit5fadc0cbb8577c61d66bd6f19ceaf0507c11e23b (patch)
tree684758441f5b431d0008253243034b6a4a29417c /include/str.h
parent249866e3d1e11dc72eaa1305f4bb479ded92ef38 (diff)
initial clang-format
Diffstat (limited to 'include/str.h')
-rw-r--r--include/str.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/str.h b/include/str.h
index fe36d0b..0d74812 100644
--- a/include/str.h
+++ b/include/str.h
@@ -8,18 +8,18 @@
* - 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_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_chr(const char *,int);
-extern unsigned int str_rchr(const char *,int);
-extern int str_start(const char *,const char *);
-extern char *str_append(char *out,const char *s);
+extern unsigned int str_chr(const char *, int);
+extern unsigned int str_rchr(const char *, int);
+extern int str_start(const char *, const char *);
+extern char *str_append(char *out, const char *s);
-#define str_equal(s,t) (!str_diff((s),(t)))
-#define str_cat(s,t) str_append(s,t)
+#define str_equal(s, t) (!str_diff((s), (t)))
+#define str_cat(s, t) str_append(s, t)
#endif