~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to o/bcopy.c

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdlib.h>
 
2
void bcopy(const void *s1, void *s2, size_t n)
 
3
{ const char *c1=s1;
 
4
  char *c2=s2;
 
5
  while (n-- > 0) {
 
6
    *c2++ = *c1++;
 
7
}
 
8
}
 
9
 
 
10