Subversion Repositories SvarDOS

Rev

Rev 2161 | Rev 2199 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2161 Rev 2195
Line 856... Line 856...
856
  }
856
  }
857
  sprintf(fname + pathlen, "\\%s.LNK", linkname);
857
  sprintf(fname + pathlen, "\\%s.LNK", linkname);
858
 
858
 
859
  return(0);
859
  return(0);
860
}
860
}
-
 
861
 
-
 
862
 
-
 
863
/* like memcpy() but guarantees to copy from left to right */
-
 
864
void memcpy_ltr(void *d, const void *s, unsigned short len) {
-
 
865
  unsigned char const *ss = s;
-
 
866
  unsigned char *dd = d;
-
 
867
 
-
 
868
  while (len--) {
-
 
869
    *dd = *ss;
-
 
870
    ss++;
-
 
871
    dd++;
-
 
872
  }
-
 
873
}
-
 
874
 
-
 
875
/* like memcpy() but guarantees to copy from right to left */
-
 
876
void memcpy_rtl(void *d, const void *s, unsigned short len) {
-
 
877
  unsigned char const *ss = s;
-
 
878
  unsigned char *dd = d;
-
 
879
 
-
 
880
  dd += len - 1;
-
 
881
  ss += len - 1;
-
 
882
  while (len--) {
-
 
883
    *dd = *ss;
-
 
884
    ss--;
-
 
885
    dd--;
-
 
886
  }
-
 
887
}