iso-9899.info
iso-9899.info
https://www.iso-9899.info › wiki › Why_not_realloc
C is not a variant of perl/fortran or any other language with variable sized arrays such as python. One traditional C way of thinking of resizing something in C is to use a linked list. e.g. a linked list of char buffers. This is not the right data structure to use for some math problems, but is typical for so-called "infinite strings".