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

[Learn-C] Outdated information about bools not being in C #597

Open
ghost opened this issue Jun 10, 2021 · 2 comments · May be fixed by #738
Open

[Learn-C] Outdated information about bools not being in C #597

ghost opened this issue Jun 10, 2021 · 2 comments · May be fixed by #738

Comments

@ghost
Copy link

ghost commented Jun 10, 2021

Bools have been implemented in C with the stdbool.h header since C99, one should use that instead of defining a separate boolean variable by themselves

@dyskos
Copy link

dyskos commented May 30, 2022

Why hasn't this been updated yet? It's been nearly a year since its mention. That's nearly a year that beginners may have been misled by information that's quite literally 23 years out of date.

image

Also, it should be noted that -- per the C standard -- functions that take no arguments should have a void in its parameter list.

@ronreiter
Copy link
Owner

@dyskos would you like to send a PR?

@vincens2005 vincens2005 linked a pull request Apr 16, 2023 that will close this issue
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 a pull request may close this issue.

2 participants