Compare commits

..

No commits in common. "8d9ebecadd93ce6f9094e07cfc50c5a62736dc24" and "f6da8f15242c6e5c96d79a2e150db383cd8b23dc" have entirely different histories.

6 changed files with 0 additions and 69 deletions

View File

@ -1,35 +0,0 @@
#pragma once
/*
int isalnum(int c);
int isalpha(int c);
int iscntrl(int c);
*/
int isdigit(int c);
/*
int isgraph(int c);
int islower(int c);
int isprint(int c);
int ispunct(int c);
int isspace(int c);
int isupper(int c);
int isxdigit(int c);
int isascii(int c);
int isblank(int c);
int isalnum_l(int c, locale_t locale);
int isalpha_l(int c, locale_t locale);
int isblank_l(int c, locale_t locale);
int iscntrl_l(int c, locale_t locale);
int isdigit_l(int c, locale_t locale);
int isgraph_l(int c, locale_t locale);
int islower_l(int c, locale_t locale);
int isprint_l(int c, locale_t locale);
int ispunct_l(int c, locale_t locale);
int isspace_l(int c, locale_t locale);
int isupper_l(int c, locale_t locale);
int isxdigit_l(int c, locale_t locale);
int isascii_l(int c, locale_t locale);
*/

View File

@ -1,5 +0,0 @@
#pragma once
int atoi(const char *nptr);
long atol(const char *nptr);
long long atoll(const char *nptr);

View File

@ -1,4 +0,0 @@
int isdigit(int c)
{
return '9' >= c && c >= '0';
}

View File

@ -1,6 +0,0 @@
#include "../../headers/stdlib.h"
int atoi(const char *str)
{
return atoll(str);
}

View File

@ -1,6 +0,0 @@
#include "../../headers/stdlib.h"
long atol(const char *str)
{
return atoll(str);
}

View File

@ -1,13 +0,0 @@
#include "../../headers/ctype.h"
long long atoll(const char *str)
{
const char *start = str;
long long ret;
while (*start != '\0') {
if (isdigit(*str))
ret = ret * 10 + *str - '0';
}
return ret;
}