-
Notifications
You must be signed in to change notification settings - Fork 0
Other functions
Ilya Kashnitskiy edited this page Feb 17, 2020
·
3 revisions
Definition | Description |
---|---|
void ft_swap(void *p1, void *p2, size_t size) |
swaps two memory area |
void *ft_memrev(void *mem, size_t size) |
reverts memory |
size_t ft_cwords(const char *str, int (*f)(int c)) |
counts words in str . uses f to detect delimiter |
int ft_pow(int n, int pow) |
raises the number n to the power pow
|
void ft_strset(char *str, char c, int len) |
sets len bytes in str to value c
|
const char *ft_skip_digits(const char *str) |
returns pointer to pos in str after skip all digits |
int ft_isdigit_ws(char *s) |
returns TRUE if s consist only digits and space symbols |
char *ft_skip_atoi(char *s) |
returns a pointer to pos in str after skipping as many characters as the atoi() function reads |
int ft_is_empty_str(char *str, size_t len) |
returns TRUE if s consist only space symbols or empty. |
void ft_getsnbr_base(long long int nbr, char *base, char *output) |
writes the number nbr to the output using the base base
|
void ft_getunbr_base(unsigned long long int nbr, char *base, char *output) |
writes the number nbr to the output using the base base
|