News for hackers. Stuff that matters.
Re:A comprehensive guide to 50 years of evolution of strict ... by spacechild1 on Friday November 26, 2021 @07:50PM (#29355974)
Here's another gem:

    int allocate_memory(void)
    {
        int *matrix;
  
        if (!(matrix = malloc(sizeof(int) * 9))) // this is short for matrix = malloc(sizeof(int) \* 9; if (matrix == NULL)
            return NULL; // the malloc is now protected,
  
        return matrix;
    }

There are no comments on this comment yet.