https://github.com/srph/ctoi
Converts a character to an integer
https://github.com/srph/ctoi
Last synced: 11 months ago
JSON representation
Converts a character to an integer
- Host: GitHub
- URL: https://github.com/srph/ctoi
- Owner: srph
- Created: 2015-12-19T23:57:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-20T00:00:43.000Z (over 10 years ago)
- Last Synced: 2025-01-26T17:16:01.444Z (over 1 year ago)
- Language: C
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## ctoi
Converts a `char` to an `int`.
### Usage
```c
#import
#import "ctoi.h"
#import "ctoi.c"
int main(void)
{
printf("%d", ctoi('5'));
return 0;
}
```