#include <stddef.h>
#include "ft_put.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_putnbr_fd()
| void ft_putnbr_fd |
( |
int |
n, |
|
|
int |
fd |
|
) |
| |
Definition at line 48 of file ft_putnbr_fd.c.
63 num_str_buf[buf_pos++] = (long_n % 10) +
'0';
67 num_str_buf[buf_pos++] =
'-';
68 num_str_buf[buf_pos] =
'\0';
void ft_putchar_fd(char c, int fd)
void ft_putstr_fd(char *s, int fd)
static long ft_absl(long v)
static char * reverse_str(char *str)
◆ reverse_str()
| static char* reverse_str |
( |
char * |
str | ) |
|
|
static |
Definition at line 18 of file ft_putnbr_fd.c.
28 while (*str_end !=
'\0')
31 while (str_top < str_end)
34 *str_end-- = *str_top;