(my)TinyLibC 0.0.1
little tiny pretty lib c
Loading...
Searching...
No Matches
tlcstdios.h
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2022
3** (my) TinyLibC
4** File description:
5** prototypes for stdios part
6*/
7
8#ifndef TLS_STDIOS_H_
9 #define TLS_STDIOS_H_
10
11 #include <stdbool.h>
12 #include <stdarg.h>
13
22int x_putc(char c, bool newline);
23
32int x_puts(const char *str, bool newline);
33
52int x_printf(const char *format, ...);
53
64char *x_sprintf(const char *format, ...);
65
76char *x_vsprintf(const char *format, va_list ap);
77
87int x_putsd(int fd, const char *str, bool newline);
88
98int x_putcd(int fd, char c, bool newline);
99
109int x_dprintf(int fd, const char *format, ...);
110
111#endif
int x_printf(const char *format,...)
put a formated string to stdout (nothing if format = 0)
int x_puts(const char *str, bool newline)
put str to stdout (nothing if str = 0)
int x_dprintf(int fd, const char *format,...)
Print to fd the str format and put newline if bool true.
int x_putsd(int fd, const char *str, bool newline)
Print to fd the str and put newline if bool true.
int x_putcd(int fd, char c, bool newline)
Print to fd the c and put newline if bool true.
char * x_vsprintf(const char *format, va_list ap)
same as x_sprintf but take a va_list
char * x_sprintf(const char *format,...)
like printf but not output the string to stdout, put it in a string
int x_putc(char c, bool newline)
put c to stdout