Revision 1064 trunk/src/linad99/df_file.cpp

df_file.cpp (revision 1064)
366 366
    //cout << "offset after write is " << lseek(file_ptr,0,SEEK_CUR)<< endl;
367 367
    //clogf << "offset after write is " << lseek(file_ptr,0,SEEK_CUR)<< endl;
368 368
  }
369

  
370
/**
371
 * Description not yet available.
372
 * \param
373
 */
374
void byte_copy(void * dest,void * source, unsigned num_bytes)
375
{
376
#if !defined (__SUN__) && !defined (__WAT32__) && !defined(__ADSGI__) && !defined (__MSVC32__) && !defined(linux)
377
  int ii=0;
378
  while (ii++<num_bytes)
379
  {
380
   *((char *)dest)++ = *((char *)source)++;
381
  }
382
#else
383
  memcpy((char*)dest, (char*)source, num_bytes);
384
#endif
385
 }

Also available in: Unified diff