Skip to content

Barbara Hunter#73

Open
cmdncode wants to merge 4 commits intobloominstituteoftechnology:masterfrom
cmdncode:master
Open

Barbara Hunter#73
cmdncode wants to merge 4 commits intobloominstituteoftechnology:masterfrom
cmdncode:master

Conversation

@cmdncode
Copy link
Copy Markdown

No description provided.

{
arr->elements[i] = NULL;
free(arr->elements[i]);
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be the proper way of freeing everything.

// Allocate memory for elements

newArray->elements = calloc(capacity, sizeof(char *));
return newArray;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very well done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants