Skip to content

Abdalrhman-Olimat/ft_printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

ft_printf - Custom Implementation of printf

ft_printf_logo

Introduction

Welcome to my ft_printf project! 🌟 ft_printf is a custom implementation of the standard printf function in C. This project showcases the ability to handle various data types and format specifiers, enhancing skills in string formatting, memory management, and variadic functions. It is a fundamental step in mastering C programming and preparing for more complex projects.

Features

  • ft_printf: A custom implementation that mimics the standard printf function, supporting:
    • Various format specifiers, including %c, %s, %p, %d, %i, %u, %x, %X, and %%.
    • Variadic Format Handling: Supports a variable number of arguments using variadic macros.
    • Error Handling: Manages invalid input formats in a controlled way.
    • Proper output to the standard output stream.

Getting Started

To use ft_printf in your own projects, simply clone the repository and include the header file in your project:

Installation

To install ft_printf, follow these steps:

  1. Clone the repository:
git clone https://github.com/Abdalrhman-Olimat/ft_printf.git
  1. Navigate to the project directory:
cd ft_printf
  1. Compile the library:
make

Usage

To use ft_printf in your C programs, include the following line in your source files:

#include "ft_printf.h"

Example of using ft_printf:

int main() {
    ft_printf("Hello, %s! Your score is %d.\n", "User", 42);
    return 0;
}
 

Contributing

Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request.

Contact

If you have any questions or suggestions, please reach out to me via gmail or Linkedin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published