Index: uspace/lib/libc/generic/string.c
===================================================================
--- uspace/lib/libc/generic/string.c	(revision 38c706cc8a6d3b4125c0704bdb5d9d6fe37e7fbf)
+++ uspace/lib/libc/generic/string.c	(revision 338c943185a90627ee68546ac526cbd0aa5d39b0)
@@ -145,4 +145,14 @@
 }
 
+int strncmp(const char *a, const char *b, size_t n)
+{
+	size_t c = 0;
+
+	while (c < n && a[c] && b[c] && (!(a[c] - b[c])))
+		c++;
+	
+	return ( c < n ? a[c] - b[c] : 0);
+	
+}
 
 /** Return pointer to the first occurence of character c in string
