Blame view

build1/epsilon-master/liba/src/memset.c 175 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
  #include <string.h>
  
  void * memset(void * b, int c, size_t len) {
    char * destination = (char *)b;
    while (len--) {
      *destination++ = (unsigned char)c;
    }
    return b;
  }