Zilog ZUSBOPTS Manuel d'utilisateur Page 456

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 520
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 455
Standard Functions UM017105-0511
428
Zilog Developer Studio II – ZNEO™
User Manual
memcpy
Copies n characters from the object pointed to by s2 into the object pointed to by s1. If the
two regions overlap, the behavior is undefined.
Synopsis
#include <string.h>
void *memcpy(void *s1, const void *s2, size_t n);
Returns
The value of s1.
Example
char s1[10];
char s2[10] = "COMPASS";
memcpy(s1, s2, 8);
memmove
Moves n characters from the object pointed to by s2 into the object pointed to by s1.
Copying between objects that overlap takes place correctly.
Synopsis
#include <string.h>
void *memmove(void *s1, const void *s2, size_t n);
Returns
The value of s1.
Example
char s1[10];
char s2[]="COMPASS";
memmove(s1, s2, 8*sizeof(char));
memset
Copies the value of c (converted to an unsigned char) into each of the first n characters
of the object pointed to by s.
Vue de la page 455
1 2 ... 451 452 453 454 455 456 457 458 459 460 461 ... 519 520

Commentaires sur ces manuels

Pas de commentaire