Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This project implements a custom function, ft_printf, that mimics the behavior of the standard C library function printf. ft_printf takes a format string and optional arguments, formats the output based on specifiers within the format string, and prints the result.

NotificationsYou must be signed in to change notification settings

MarkosComK/42-Printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

122 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ftprintf

Development repo for 42cursus ft_printf project



This is a project in daily use. If you want to see the project that i have been evaluated in 42school click in releases at the right side!

🗣️ About

_The aim of this project is to code a printf() function that will behave as close as possible from the original printf() from <stdio.h>


🧐 Great Resources for ft_printf()

42-Gitbook

C++ printf() reference

Oracle Docs

For detailed information, refer to thesubject of the project

🚀 This project consists of recode the usetul printf() from <stdio.h>
  • Supported conversions %: c, s, p, i, d, u, x, X
  • Supported flags: # + (space)
  • Supported options: - 0 . width

🛠️ Usage

Requirements

The function is written in C language and thus needs thegcc compiler and some standardC libraries to run.

Instructions

make to compile.

Basic Usage

For example, let's create amain.c file.

// Include the header#include"ft_printf.h"intmain(void){// Call the functionft_printf("Testing ft_printf!");return (0);}

Compile themain.c file with the ft_printf library and run the program:

cc main.c libftprintf.a&& ./a.out

Output should be:

Testing ft_printf!

Testing

WHY NOT ASSEMBLY?

++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>.>---.++++++++++++.++.++++++.--.<<++.>>------.------------.+++++++++++++.<<.>>++++++.------------.-------. +++++++++++++++++++.<<.>>----------------.+++++.+++++++++.-------------.--.+ ++++++++++++++++.--------.+++++++++++++.<<.>>-----------------------.+++.+++ ++++.---.----.+++++++++++++++++.-----------------.-.<<.>>+++++.+++++.<<.>-------...

About

This project implements a custom function, ft_printf, that mimics the behavior of the standard C library function printf. ft_printf takes a format string and optional arguments, formats the output based on specifiers within the format string, and prints the result.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2026 Movatter.jp