To tylko jedna z 2 stron tej notatki. Zaloguj się aby zobaczyć ten dokument.
Zobacz
całą notatkę
Memmove void *memmove(void *dest, const void *src, size_t n); Copies a block of n bytes from src to dest Even when the src and dest blocks overlap, bytes in the overlapping locations are copied correctly #include #include int main() { char dest[] = "abcdefghijklmnopqrstuvwxyz0123456789"; char *src = "******************************"; printf("destination prior to memmove: %s\n", dest); memmove(dest, src, 26); printf("destination after memmove: %s\n", dest); return 0; } destination prior to memmove: abcdefghijklmnopqrstuvwxyz0123456789 destination after memmove: **************************0123456789
... zobacz całą notatkę
Komentarze użytkowników (0)