Index: uspace/lib/libc/generic/string.c
===================================================================
--- uspace/lib/libc/generic/string.c	(revision 38c706cc8a6d3b4125c0704bdb5d9d6fe37e7fbf)
+++ uspace/lib/libc/generic/string.c	(revision 63448512ad24cc1ceeb9a344e89d03ebe59dc3a3)
@@ -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
