Skip to content

Commit 4d01b54

Browse files
author
ophicial-pauloski
committed
solved
1 parent 0563a44 commit 4d01b54

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include "main.h"
2+
3+
/**
4+
* _isdigit - checks for a digit (0 through 9)
5+
* @c: int to be checked
6+
* Return: 1 if c is a digit, 0 otherwise
7+
*/
8+
int _isdigit(int c)
9+
{
10+
return (c >= '0' && c <= '9');
11+
}

0 commit comments

Comments
 (0)