Revision 1962 trunk/src/linad99/df_file.cpp

df_file.cpp (revision 1962)
69 69
#include <string.h>
70 70

  
71 71
char lastchar(char*);
72
void byte_copy(void* dest,void* source, unsigned num_bytes);
72

  
73
void byte_copy(void* dest, void* source, unsigned int num_bytes)
74
{
75
#if defined(__ADSGI__)
76
  char* pdest = (char*)dest;
77
  char* psource = (char*)source;
78
  int ii=0;
79
  while (ii < num_bytes)
80
  {
81
    //*((char *)dest)++ = *((char *)source)++;
82
    *pdest = *psource;
83
    pdest++;
84
    psource++;
85
    ii++;
86
  }
87
#else
88
  memcpy((char*)dest, (char*)source, num_bytes);
89
#endif
90
}
91

  
73 92
extern char ad_random_part[6];
74 93

  
75 94
/**

Also available in: Unified diff