-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Update reverse.c #64
Update reverse.c #64
Conversation
Reset the static variables after the reversing process was complete so the reverse function can be used more than once without issue.
@sadeem-albir Can you fix the build for this one? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sadeem-albir Fix the build!
This is odd. I will try to check what the issue with it is. |
Reset static variables after string-reverse process completed, making the function reusable
@ohkimur Ok I saw the issue. I need to stop mixing up between s and str a lot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing!
@ohkimur anytime :) |
Reset the static variables after the reversing process was complete so the reverse function can be used more than once without issue.