https://github.com/andreyvdl/42-ft_printf
My ft_printf project
https://github.com/andreyvdl/42-ft_printf
42 42saopaulo c ftprintf ftprintf42 makefile
Last synced: 10 months ago
JSON representation
My ft_printf project
- Host: GitHub
- URL: https://github.com/andreyvdl/42-ft_printf
- Owner: andreyvdl
- Created: 2022-10-20T13:11:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-29T00:16:42.000Z (over 2 years ago)
- Last Synced: 2025-02-13T16:47:54.902Z (12 months ago)
- Topics: 42, 42saopaulo, c, ftprintf, ftprintf42, makefile
- Language: C
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
___
Program name | Files to turn in | Makefile rules | External functions | result
:---: |:---: | :---: | :---: | :---:
libftprint.a | Makefile, \*.h, \*/\*.h, \*.c, \*/\*.c | NAME, all, clean, fclean, re | malloc, free, write, va_start, va_arg, va_copy, va_end, (libft) | 100/100%
## Objective
> Write a library that contains ft_printf(), a function that will mimic the original printf().
## Prototype
```c
int ft_printf(const char *, ...);
```
### Simple Code Execution
```c
#include "ft_printf.h"
int main(void)
{
ft_printf("%c\n", byte);
ft_printf("%s\n", string);
ft_printf("%d %i\n", number1, number2);
ft_printf("%p\n", pointer);
ft_printf("%x %X\n", number3, number4);
ft_printf("%%\n");
return (0);
}
```