Git Product home page Git Product logo

ft_printf_42's Introduction

ft_printf_42

ft_printf is a simplified implementation of the printf function in C, providing basic formatting for characters, strings, integers, unsigned integers, hexadecimal, and pointers.

Table of Contents

Introduction

This project aims to provide a basic printf functionality with support for commonly used format specifiers. It's designed to be a learning exercise and may not cover all edge cases or features of a complete standard printf implementation.

Usage

To use ft_printf in your C project, follow these steps:

  1. Clone the repository: git clone <repository-url>
  2. Include the ft_printf.h header file in your source code.
  3. Compile your project with the ft_printf source files.

Supported Format Specifiers

  • %c: Character
  • %%: Percent sign
  • %s: String
  • %d, %i: Signed integer
  • %u: Unsigned integer
  • %x: Hexadecimal (lowercase)
  • %X: Hexadecimal (uppercase)
  • %p: Pointer

How to Build

To build the project, you can use a simple Makefile or compile the source files manually. Here's an example using GCC:

gcc -Wall -Wextra -Werror -c ft_printf.c ft_print_char.c ft_print_str.c ... # Add all source files
gcc -o your_program your_source_file.c ft_printf.o ft_print_char.o ft_print_str.o ... # Add all object files

ft_printf_42's People

Contributors

zakarm avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.