Changes between Version 1 and Version 2 of Ticket #69384, comment 5


Ignore:
Timestamp:
May 3, 2024, 12:07:59 PM (6 months ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #69384, comment 5

    v1 v2  
    3535`gk_getline` in turn does this:
    3636
    37 https://github.com/KarypisLab/GKlib/blob/8bd6bad750b2b0d90800c632cf18e8ee93ad72d7/io.c#L101C1-L116
     37https://github.com/KarypisLab/GKlib/blob/8bd6bad750b2b0d90800c632cf18e8ee93ad72d7/io.c#L101C1-L113
    3838
    3939{{{#!c
     
    5151  /* Initial memory allocation if *lineptr is NULL */
    5252  if (*lineptr == NULL || *n == 0) {
    53     *n = 1024;
    54     *lineptr = gk_malloc((*n)*sizeof(char), "gk_getline: lineptr");
    55   }
    5653}}}
    5754