Skip to content

atoi converts a char * to an int, not to a long#125

Open
sheeit wants to merge 1 commit intoorangeduck:masterfrom
sheeit:patch-1
Open

atoi converts a char * to an int, not to a long#125
sheeit wants to merge 1 commit intoorangeduck:masterfrom
sheeit:patch-1

Conversation

@sheeit
Copy link

@sheeit sheeit commented Nov 23, 2017

We can instead use atol if we want to convert to a long.

@orangeduck
Copy link
Owner

I will try to take a quick look at this later - I really can't remember why I decided to use long in this chapter rather than int...

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