You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
388 B

#include "webserv.hpp"
2 years ago
void *ft_memset(void *b, int c, size_t len) {
2 years ago
size_t i;
unsigned char *b_cpy;
2 years ago
2 years ago
b_cpy = (unsigned char *)b;
i = 0;
while (i < len)
*(unsigned char *)(b_cpy + i++) = (unsigned char)c;
return ((void *)b);
2 years ago
}
2 years ago
bool isInt(string str) {
for (string::iterator it = str.begin(); it < str.end(); it++)
2 years ago
if (*it < '0' || *it > '9')
return false;
2 years ago
return true;
}