Giter Site home page Giter Site logo

42-ft_printf's Introduction

ft_printf

Project Description

This is the ft_printf project for the 42 school curriculum. The project focuses on recreating the standard C library function printf. The goal is to implement a versatile and extensible printf function that can handle various format specifiers and modifiers.

Features

  • Basic Conversion Specifiers: Support for %c, %s, %p, %d, %i, %u, %x, %X, and %o.
  • Width and Precision: Handle minimum field width and precision.
  • Flags: Implement flags such as 0, -, +, #, and (space).
  • Length Modifiers: Recognize length modifiers like hh, h, l, and ll.

Getting Started

Prerequisites

  • GCC compiler
  • GNU Make

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/ft_printf.git
  2. Change into the project directory:

    cd ft_printf
  3. Build the project:

    make
  4. Use ft_printf in your project:

    Include the header file in your source code and link with the compiled library.

    #include "ft_printf.h"

Usage

Use the ft_printf function as a drop-in replacement for the standard printf function:

#include "ft_printf.h"

int main() {
    ft_printf("Hello, %s!\n", "World");
    return 0;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.