projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
exit strfcpy, only use m_strcpy.
[apps/madmutt.git]
/
lib-lib
/
str.h
diff --git
a/lib-lib/str.h
b/lib-lib/str.h
index
7dc15d6
..
e319f2a
100644
(file)
--- a/
lib-lib/str.h
+++ b/
lib-lib/str.h
@@
-27,6
+27,10
@@
#define NONULL(x) (x?x:"")
+static inline int m_strisempty(const char *s) {
+ return !s || !*s;
+}
+
static inline ssize_t m_strlen(const char *s) {
return s ? strlen(s) : 0;
}