Synchronize with trunk r58528.
[reactos.git] / lib / sdk / crt / mem / memccpy.c
index c760b85..f819b39 100644 (file)
@@ -1,6 +1,3 @@
-/*
- * $Id$
- */
 
 #include <string.h>
 
@@ -8,18 +5,18 @@
 void *
 _memccpy (void *to, const void *from,int c,size_t count)
 {
-  char t;
-  size_t i;
-  char *dst=(char*)to;
-  const char *src=(const char*)from;
+    char t;
+    size_t i;
+    char *dst=(char*)to;
+    const char *src=(const char*)from;
 
-  for ( i = 0; i < count; i++ )
-  {
-    dst[i] = t = src[i];
-    if ( t == '\0' )
-      break;
-    if ( t == c )
-      return &dst[i+1];
-  }
-  return NULL; /* didn't copy c */
+    for ( i = 0; i < count; i++ )
+    {
+        dst[i] = t = src[i];
+        if ( t == '\0' )
+            break;
+        if ( t == c )
+            return &dst[i+1];
+    }
+    return NULL; /* didn't copy c */
 }