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

Update reverse.c #64

Merged
merged 3 commits into from
Mar 5, 2024
Merged

Update reverse.c #64

merged 3 commits into from
Mar 5, 2024

Conversation

sadeem-albir
Copy link
Contributor

Reset the static variables after the reversing process was complete so the reverse function can be used more than once without issue.

Reset the static variables after the reversing process was complete so the reverse function can be used more than once without issue.
@ohkimur
Copy link
Owner

ohkimur commented Feb 29, 2024

@sadeem-albir Can you fix the build for this one?

Copy link
Owner

@ohkimur ohkimur left a 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!

@sadeem-albir
Copy link
Contributor Author

@sadeem-albir Can you fix the build for this one?

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
@sadeem-albir
Copy link
Contributor Author

@ohkimur Ok I saw the issue. I need to stop mixing up between s and str a lot

Copy link
Owner

@ohkimur ohkimur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing!

@sadeem-albir
Copy link
Contributor Author

@ohkimur anytime :)

@ohkimur ohkimur merged commit ab4be25 into ohkimur:main Mar 5, 2024
1 check passed
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.

2 participants