Hallo kann mir jemand sagen, wie man die unktion memcpy in c benutzt?
danke avuton
Library: string.h
Prototype: char memcpy(void *s1, void *s2, int num);
Example: float data1;
char data2[64];
memcpy(data1, data2, sizeof(data2));
Es werden num Bytes von s2 nach s1 kopiert.
Die Parameter sind also (in genau dieser Reihenfolge) Ziel, Quelle und Anzahl Bytes.
Powered by vBulletin® Version 4.2.5 Copyright ©2025 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.