https://github.com/0xromjobert/ft_printf
  
  
    A 42 school project aimed at re-building the behavior of the C library function printf using variadic arguments. 
    https://github.com/0xromjobert/ft_printf
  
c ft-printf string-manipulation
        Last synced: 5 months ago 
        JSON representation
    
A 42 school project aimed at re-building the behavior of the C library function printf using variadic arguments.
- Host: GitHub
 - URL: https://github.com/0xromjobert/ft_printf
 - Owner: 0xromjobert
 - Created: 2023-05-17T14:13:59.000Z (over 2 years ago)
 - Default Branch: main
 - Last Pushed: 2023-07-03T17:04:56.000Z (over 2 years ago)
 - Last Synced: 2025-04-08T14:54:40.799Z (7 months ago)
 - Topics: c, ft-printf, string-manipulation
 - Language: C
 - Homepage:
 - Size: 29.3 KB
 - Stars: 0
 - Watchers: 1
 - Forks: 0
 - Open Issues: 0
 - 
            Metadata Files:
            
- Readme: README.md
 
 
Awesome Lists containing this project
README
          # ft_printf
A 42 school project aimed at re-building the behavior of the C library function `printf()` using variadic arguments.
The purpose of the exercise is to learn about variadic arguments manipulation while leveraging the Libft library previously built.
The formats read by `ft_printf()` in this exercise are :
* `%c` : a character.
* `%s` : a string.
* `%p`  : pointer argument printed in hex format.
* `%d` : a decimal (base 10) number.
* `%i` : an integer.
* `%u` : an unsigned decimal (base 10).
* `%x` (or `%X`) : a number in hexadecimal lowercase (or uppercase) : ex %x or %X print f5 or F5 for 245 in base10
* `%%` : a percent sign
## Status
Finished : 19/05/2023
Grade : 100/100
## Usage
`make` to compile
the `Makefile` will add the `ft_printf()` function to the `libft.a` library and rename it `libftprintf.a`, 
you can then compile any `main.c` file calling ft_printf and run it
```
cc main.c libftprintf.a
```