Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error reporting in cbt_visit_all #24

Open
abdullahemad12 opened this issue Jan 6, 2019 · 0 comments
Open

Error reporting in cbt_visit_all #24

abdullahemad12 opened this issue Jan 6, 2019 · 0 comments
Labels
enhancement New feature or request first-timers-only Good for new comers good first issue Good for newcomers help wanted Extra attention is needed

Comments

@abdullahemad12
Copy link
Owner

abdullahemad12 commented Jan 6, 2019

Task

set the op_errorno appropriately when a NULL function pointer is provided or if the number of visited entries does not match the number of entries in the tree. The error codes can be found in include/cranbtree.h

Method

check for errors before and after the tree traversal

Where to code

  • src/cranbtree.c

Tests

  1. cbt_visit_all_test1
  2. cbt_visit_all_test2
    Make sure to uncomment this tests in test/test.c, compile, the run and make sure all the tests passes and nothing is broken
@abdullahemad12 abdullahemad12 added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers first-timers-only Good for new comers labels Jan 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request first-timers-only Good for new comers good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant