Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the following non-compliant code example, a function that is assumed to be closely exposed to a user takes a size parameter to size is a user supplied parameter used determine the size of a table to be created{{table }}.

Code Block
bgColor#ffcccc
int create_table(size_t size) {
  char **table = malloc(size * sizeof(char *));
  if(table == NULL) {
    /* Handle error condition */
  }
  /* ... */
  return 0;
}

...