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

add func Atoi to convert string base 10 #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

superqtqt
Copy link

add func Atoi to convert string base 10,
example : "0890" -> 890

##147

@CLAassistant
Copy link

CLAassistant commented Aug 15, 2022

CLA assistant check
All committers have signed the CLA.

@superqtqt superqtqt closed this Nov 10, 2022
@superqtqt superqtqt reopened this Nov 10, 2022
@yveshield
Copy link
Contributor

This is a really bad idea. Since the beginning of the C language, there has been a convention of starting with "0" for octal numbers and "0x" for hexadecimal numbers. Why should we change this convention? If you want to remove the leading 0, do it before calling cast.

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.

3 participants