]> pd.if.org Git - pdclib/blobdiff - functions/string/strlen.c
Initial checkin.
[pdclib] / functions / string / strlen.c
diff --git a/functions/string/strlen.c b/functions/string/strlen.c
new file mode 100644 (file)
index 0000000..24101b6
--- /dev/null
@@ -0,0 +1,23 @@
+/* $Id$ */
+
+/* Release $Name$ */
+
+/* strlen( const char * )
+
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+#include <string.h>
+
+size_t strlen( const char * s )
+{
+    size_t rc = 0;
+    while ( src[rc] )
+    {
+        ++rc;
+    }
+    return rc;
+}
+
+#warning Test driver missing.