Skip to content
/ strtoint Public

A small code to convert char * to int in the C programming language.

License

Notifications You must be signed in to change notification settings

mipsc/strtoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

strtoint

A small code to convert char * to int in the C programming language.

Example

#include <assert.h>
#include "strtoint.h"

int main(void) {
	assert(strtoint("290343") == 290343);
	assert(strtoint("656421") == 656421);
	assert(strtoint("15") == 15);
	assert(strtoint("0") == 0);
	assert(strtoint("10") == 10);
	return 0;
}

About

A small code to convert char * to int in the C programming language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages