Rearranged whitespace (and comments) in all the code!
[mmh] / sbr / memmove.c
index 62a303f..fabe133 100644 (file)
@@ -1,11 +1,12 @@
 /* public domain function from Jan Wolter Unix Incompatibility Notes */
 /* http://unixpapa.com/incnote/ */
-char *memmove(char *dst, char *src, int n)
+char *
+memmove(char *dst, char *src, int n)
 {
-  if (src > dst)
-    for ( ; n > 0; n--)
-      *(dst++)= *(src++);
-  else
-    for (dst+= n-1, src+= n-1; n > 0; n--)
-      *(dst--)= *(src--);
+       if (src > dst)
+               for ( ; n > 0; n--)
+                       *(dst++)= *(src++);
+       else
+               for (dst+= n-1, src+= n-1; n > 0; n--)
+                       *(dst--)= *(src--);
 }