News for hackers. Stuff that matters.
Re:Git's list of banned C functions by moonchild on Friday March 05, 2021 @05:44PM (#26363195)
> dynamically sized arrays

Yes. What you can't do is associate bounds information with some specific pointer to an array, but this will work, for instance:

  int *x = malloc(2 * sizeof(int));
  x[1]; //ok
  x[2]; //runtime error

There are no comments on this comment yet.