Skip to content

aeiedamo/printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

47c301b · Jan 1, 2024
Oct 17, 2023
Oct 13, 2023
Jan 1, 2024
Oct 18, 2023
Oct 17, 2023
Oct 17, 2023
Oct 17, 2023
Oct 17, 2023
Oct 17, 2023
Oct 18, 2023
Oct 18, 2023
Oct 17, 2023
Oct 17, 2023
Oct 18, 2023
Oct 17, 2023
Oct 17, 2023

Repository files navigation

Printf Project

the "Printf" project within the ALX Software Engineering program. This project explores the implementation of the printf function in the C programming language.

Overview

The printf function is a fundamental and powerful function in C that allows formatted output. This project focuses on understanding the inner workings of printf and implementing a simplified version of it.

Implementation Details

File Structure

  • main.h: Header file containing function prototypes and necessary includes.
  • _printf.c: Main source file with the _printf function and supporting functions.
  • _any_file.c: Main source file with the helper functiosns used to handle some formats.

supported formats:

%c
%s
%%
%d
%i
%b (builtin format binary represention)
%u
%o
%x
%X

How to Use

  1. clone the printf using this command:
git clone https://github.com/aeiedamo/printf.git 
  1. include header file 'main.h' in your C program: #include "main.h"

  2. Call the _printf function with the desired format specifiers.

    int main() {
        _printf("Hello, %s! Your age is %d.\n", "John", 25);
        return 0;
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages