Code Monkey home page Code Monkey logo

ft_printf's Introduction

FT_PRINTF 42

Summary

The goal of this project is pretty straightforward. You will recode printf(). You will mainly learn about using a variable number of arguments. Subject

External functions: write, va_start, va_arg, va_end

Code written in accordance with 42 C coding style, ANSI C89 compliant and entirely documented with docstrings.

Usage

Compile the library with a simple make -j then add #include "ft_printf.h" to your project and compile it with these additional flags:

-I <path_to_libftprintf_include_dir>
-L <path_to_libftprintf_dir>
-l ftprintf

Makefile rules

  • make -- compiles get_next_line.
  • make clean -- deletes object files.
  • make fclean -- deletes object files and get_next_line.
  • make re -- fclean + make.

Tester

  • Printfest will try various, flags, value as well as undefined behavior cases to make sure that the program does not crash.

Usage: cd test && make run

Tools

  • sanitizer: -fsanitize=address

Add -g flag when compiling with -fsanitize=address to print errors line numbers instead of addresses in hexadecimal.

ft_printf's People

Contributors

clemedon 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.