Programming Challenges - 27 - String Streams (C)

preview_player
Показать описание
Here, we implement a simple yet detailed extension of the dynamic array, the string stream in C.

***NOTE: there were two small but crucial errors in the realloc function
1) The comparisons should read if the newSize + 1 is greater than or equal to the capacity.
2) The only check for the output of realloc has to be if it is null, otherwise it will update the pointers accordingly.
All the fixes are present in the most recent versions of the files on the repository.

Рекомендации по теме
join shbcf.ru