Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Copier n octets successif d’une source vers une destination


{filelink=13968}

/*
#include <string.h>
void *memcpy ( void * restrict dest , const void * restrict src , size_t n  );
 
*/
#include <stdio.h>
#include <string.h>
 
#define SIZE 80
 
int main(void)
{
  char part_x[SIZE], part_y[SIZE];
 
  strcpy(part_x, "Bienvenu");
  memcpy(part_y, part_x, SIZE);
  printf(part_y);
 
  return 0;
}

No comments yet.

Leave a Comment