Programming Challenges - 27 - String Streams (C)

Опубликовано: 14 Март 2026
на канале: Michael Grieco
315
5

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.

• Website: https://michaelg29.github.io/
• Twitter:   / michaelgrieco10  
• Discord:   / discord  
• This Github Repo: https://github.com/michaelg29/yt-chal...
• This Playlist:    • Programming Challenges  

Listened to the Fez OST by Disasterpeace (music.disasterpeace.com).