b0sc / college

Practical Guide to course subjects of CSIT, BIT, BCA, BTech, CE, SE, CS...
GNU General Public License v3.0
2 stars 5 forks source link

Noterror fixes #7 #19

Closed jeevanghimire closed 1 week ago

jeevanghimire commented 1 week ago

Describe your changes

Implemented a robust error-handling mechanism for file operations, memory allocation, and network communication in C. This includes centralized error codes, logging errors into a file (error_log.txt), and gracefully exiting the program during critical errors like memory allocation failure. A macro was used to simplify error handling, capturing function names and line numbers for better traceability.

Context

This PR addresses the need for structured error handling in the program, allowing for better debugging, logging, and graceful exits during critical failures such as memory allocation errors.

Closes #7

Checklist before requesting a review


This includes all the required tick marks as requested!

axyut commented 1 week ago

it shows 2 previous commits in this PR, next time create a local branch when you've pulled from the updated repo to only have a commit related to the issue. Remove the Introduction section after the summary (not the one in the top) in the noterror/README.md file.

axyut commented 1 week ago

you have exactly done what i requested not to do. look at line 45 at noterror/README.md copy the line and paste it at top in Introduction section.

jeevanghimire commented 1 week ago

Ohh Sorry I mistakly remove from top section I will fix it and commit the changes !!

jeevanghimire commented 1 week ago

That should do the job now !