summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2015-09-02 10:57:48 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2015-09-02 10:57:48 +0200
commit265053e2a4394b20d82aa1170ec3a9901f437d81 (patch)
tree022440b6bc0d1ad36e36429573ec17e589fb791c /src/pervasive.h
parentd9656cc86505b6f2bba57e04a4c99430a945a70d (diff)
Adds some comments, as well as minor code improvements.
Diffstat (limited to 'src/pervasive.h')
-rw-r--r--src/pervasive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pervasive.h b/src/pervasive.h
index 8a8449a..ee04b08 100644
--- a/src/pervasive.h
+++ b/src/pervasive.h
@@ -8,6 +8,7 @@
#define _ISOLATE(a) do {a} while (0)
+/* strncmp stops at '\0' and strlen does not count '\0'. */
#define _IS_PREFIX(a, b) (strncmp(a, b, strlen(a)) == 0)
#endif