- Define _CTYPE_DISABLE_MACROS for MSVC build.
[reactos.git] / reactos / lib / string / strlen.c
index ace550c..7dd8d68 100644 (file)
@@ -1,25 +1,7 @@
-/*
- * $Id: strlen.c,v 1.1 2003/05/27 18:56:15 hbirr Exp $
+/* $Id$
  */
 
 #include <string.h>
-#include <debug.h>
-#define NTOS_MODE_USER
-#include <ntos.h>
-
-int strlen(const char* str)
-{
-  const char* s;
-
-//  DPRINT1("strlen(%x)\n", str);
-//  DPRINT1("%x\n", __builtin_return_address(0));
-//  if (str == (char*)0x6418c4)
-//  {
-//      DPRINT1("%s\n", str);
-//  }
-  if (str == 0)
-    return 0;
-  for (s = str; *s; ++s);
-  return s-str;
-}
+#include "tcslen.h"
 
+/* EOF */