summaryrefslogtreecommitdiffstats
path: root/xstd.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-20 22:55:46 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-20 22:55:46 +0000
commite2762e29b6445ab6177b83521a279938a317605f (patch)
treef1daca9b424eb34693a3cb687aa7dba20226f4b0 /xstd.c
parent7a6aee8ed3dc388c63c4711e3a8122b46d8740fb (diff)
downloadmandoc-e2762e29b6445ab6177b83521a279938a317605f.tar.gz
Added regression tests (just for prologue, for now).
Minor fixes in parsing prologue.
Diffstat (limited to 'xstd.c')
-rw-r--r--xstd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xstd.c b/xstd.c
index b5820d70..a7262a61 100644
--- a/xstd.c
+++ b/xstd.c
@@ -33,6 +33,14 @@ extern size_t strlcat(char *, const char *, size_t);
extern size_t strlcpy(char *, const char *, size_t);
#endif
+
+int
+xstrncmp(const char *p1, const char *p2, size_t sz)
+{
+
+ return(0 == strncmp(p1, p2, sz));
+}
+
int
xstrcmp(const char *p1, const char *p2)
{