Skip to content

Update const string definitions #11

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

Closed
sfe-SparkFro opened this issue Dec 4, 2023 · 0 comments
Closed

Update const string definitions #11

sfe-SparkFro opened this issue Dec 4, 2023 · 0 comments

Comments

@sfe-SparkFro
Copy link
Collaborator

From @gigapod in #10:

For all these constant defines:

const char const

Which is : const data type ('the string') and const pointer ('the pointer') not just

const char

Which is just saying this symbol points to 'constant data'

We all make this mistake.

And if I was being really pedantic - I'd use const char * const - the use of "[]" to declare a pointer array is valid, but off standard.

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

No branches or pull requests

1 participant