Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mushigarou/ft_printf
Wrote ft_printf() a function that mimic the original printf()
https://github.com/mushigarou/ft_printf
unix-logic va-arg va-copy va-end va-list va-start variadic-functions
Last synced: 9 days ago
JSON representation
Wrote ft_printf() a function that mimic the original printf()
- Host: GitHub
- URL: https://github.com/mushigarou/ft_printf
- Owner: Mushigarou
- License: mit
- Created: 2022-11-23T01:22:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-05T10:27:02.000Z (over 1 year ago)
- Last Synced: 2024-06-10T03:44:01.799Z (5 months ago)
- Topics: unix-logic, va-arg, va-copy, va-end, va-list, va-start, variadic-functions
- Language: C
- Homepage:
- Size: 1.25 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ft_printf
I Wrote a library that contains ft_printf(), a function that mimic the original printf()
## Usage
```
$> git clone https://github.com/Mushigarou/ft_printf.git
$> cd ft_printf
$> make
```
Now you have a static library `libftprintf.a` that you can link with other programs## Handles :
- %c Prints a single character.
- %s Prints a string (as defined by the common C convention).
- %p The void * pointer argument has to be printed in hexadecimal format.
- %d Prints a decimal (base 10) number.
- %i Prints an integer in base 10.
- %u Prints an unsigned decimal (base 10) number.
- %x Prints a number in hexadecimal (base 16) lowercase format.
- %X Prints a number in hexadecimal (base 16) uppercase format.
- %% Prints a percent sign## Exception :
- Doesn't have the same buffer management as the original printf()## Contributing
Contributions to this project are welcome! If you find any issues or have improvements to suggest, please feel free to submit a pull request.## License
This project is licensed under the MIT license