Skip to content

Fix some of your code - #62

Open
phuocthanhlamnguyen-gif wants to merge 7 commits into
h0mbre:masterfrom
phuocthanhlamnguyen-gif:patch-1
Open

Fix some of your code#62
phuocthanhlamnguyen-gif wants to merge 7 commits into
h0mbre:masterfrom
phuocthanhlamnguyen-gif:patch-1

Conversation

@phuocthanhlamnguyen-gif

Copy link
Copy Markdown

I main;y fix you're code from Assignment 19, which will fix dangling pointers, but sorry for the mistake of turn assignment 1 from bwgineer to low-level. I don't know what I'm doing, but at least Assignment 19 is fixed; it could be wrong, so another fellow teammate can help, right?

Replaced printf with low-level write for output.
Set pointer to NULL after freeing memory to prevent dangling pointer, and can maybe avoid seg fault
Updated README to clarify struct definition and added information about pointers.
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.

1 participant