#include "ft_string.h"
#include <stdlib.h>
Go to the source code of this file.
◆ NUM_STR_BUF_LEN
| #define NUM_STR_BUF_LEN (12) |
◆ ft_absl()
| static long ft_absl |
( |
long |
v | ) |
|
|
static |
◆ ft_itoa()
Definition at line 48 of file ft_itoa.c.
60 num_str_buf[buf_pos++] = (long_n % 10) +
'0';
64 num_str_buf[buf_pos++] =
'-';
65 num_str_buf[buf_pos] =
'\0';
static long ft_absl(long v)
static char * reverse_str(char *str)
char * ft_strdup(const char *s1)
◆ reverse_str()
| static char* reverse_str |
( |
char * |
str | ) |
|
|
static |
Definition at line 18 of file ft_itoa.c.
28 while (*str_end !=
'\0')
31 while (str_top < str_end)
34 *str_end-- = *str_top;