02-11-2005, 05:15
|
|
|
|
חבר מתאריך: 04.08.02
הודעות: 4,468
|
|
...
לא יכלת לקרוא את ה-Manual?
אני חושב שאם היית חושב 5 שניות, היית מגיע לתשובה...
ציטוט:
The realloc() function changes the size of the memory object pointed to by ptr to the size specified by size. The contents of the object will remain unchanged up to the lesser of the new and old sizes. If the new size of the memory object would require movement of the object, the space for the previous instantiation of the object is freed. If the new size is larger, the contents of the newly allocated portion of the object are unspecified. If size is 0 and ptr is not a null pointer, the object pointed to is freed. If the space cannot be allocated, the object remains unchanged.
|
_____________________________________
C pogrammers never die. They are just cast into void.
|