Zilog ZUSBOPTS Bedienungsanleitung Seite 456

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 520
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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.
Seitenansicht 455
1 2 ... 451 452 453 454 455 456 457 458 459 460 461 ... 519 520

Kommentare zu diesen Handbüchern

Keine Kommentare