Index: uspace/lib/c/include/adt/hash.h
===================================================================
--- uspace/lib/c/include/adt/hash.h	(revision 0f75a638b470db4c44fa40dec459f845f1c2c7d3)
+++ uspace/lib/c/include/adt/hash.h	(revision 6efe1b78c14b0cfd714757e92a4c9880aefdd9d9)
@@ -111,3 +111,23 @@
 }
 
+/** Calculate hash of NULL-terminated string
+ *
+ * TODO Modify also same file in kernel subtree?
+ *
+ * @param[in]  str     NULL-terminated string
+ * @return hash of the given string
+ */
+static inline size_t hash_string(const char *str)
+{
+	size_t hash = 0;
+	if (str != NULL) {
+		char c;
+		while ((c = *str++) != 0) {
+			hash = hash_combine(hash, c);
+		}
+	}
+
+	return hash;
+}
+
 #endif
