* Add malloc, calloc and free wrappers to trace all of the allocations
* Improve memory leak reporting when multiple allocations occurs in the same file at the same line.
* Change directory name from 'debugging' to 'developer_tools' and added CMakeLists.txt, also change an include name to match a file name
* Edit root CMakeLists.Txt
* Update developer_tools/malloc_dbg.h
Co-authored-by: David Leal <halfpacho@gmail.com>
* Edit CMakeLists.txt to create a static library from malloc_dbg.c
* Add comments for the includes
* Change test.c name to test_malloc_dbg.c, also edit CMakeLists.txt to link malloc_dbg.a only to test_malloc_dbg.
* Change comment style and change EXIT_SUCCESS to 0
* Fix typo in doxygen comments
* Enhance comments
* Apply suggestions from code review
Co-authored-by: David Leal <halfpacho@gmail.com>
* created prime_seive.c
This function counts the number of prime numbers in O(nlogn) time.
* Apply suggestions from code review
Co-authored-by: David Leal <halfpacho@gmail.com>
* updating DIRECTORY.md
* updated prime_seive.c
* Update misc/prime_seive.c
Co-authored-by: David Leal <halfpacho@gmail.com>
* added more changes
please take a look at it
* changed 1000000 to MAX_SIZE
* updated line 10
* changed the code back to original
* eliminated the problem of MAX_SIZE
* added for loop to initialise all elements to 0
* made the changes
* changed the code back to original
i have changed my code back to original as some tests were failing
* removed extra spaces & edited some lines
* added new global variable
* added extra space
* added parameter & return statement
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
* Add another hexadecimal to octal conversion
* Apply suggestions
Also changed the return type of `hex_to_oct` to `const char *`, as it
returns an address of static variable.
* Update comment of hexadecimal_to_octal2.c
* updating DIRECTORY.md
* Apply suggestions
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
* Doubly linked list, simple code.
#633
* organizing code a bit more
* add link in DIRECTORY.md and more comments/cleaning.
* remove global variables and redundancy.
* add Wikipedia reference
* add documentation comments in all functions/headers
* add update in file brief
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
* remove part of file @details
Co-authored-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>