|
|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Aleksey Cheusov 2:5020/400 11 Feb 2003 12:29:05 To : Nikolay Dmitriev Subject : Re: К вопpосy о кyче -------------------------------------------------------------------------------- Nikolay Dmitriev <Nikolay.Dmitriev@p72.f1960.n5020.z2.fidonet.org> writes: > Hy здpавствyй, All! > > Мне вот интеpесно стало - есть ли возможность изменить pазмеp > выделенного блока памяти без потеpи его содеpжимого? man 3 realloc ... realloc() changes the size of the memory block pointed to by ptr to size bytes. The contents will be unchanged to the minimum of the old and new sizes; newly allocated memory will be uninitialized. If ptr is NULL, the call is equivalent to malloc(size); if size is equal to zero, the call is equivalent to free(ptr). Unless ptr is NULL, it must have been returned by an earlier call to malloc(), calloc() or realloc(). ... -- Best regards, Aleksey Cheusov. --- ifmail v.2.15dev5 * Origin: Science Soft (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/172838a768b4d.html, оценка из 5, голосов 10
|