Skip to content

BeefSnot/atlas-printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atlas-printf

Desciption

'atlas-printf' is a custom implementation of the 'printf' function in C. This project replicates the behavior of the standard C library 'printf' function, handling specific conversion specifiers such as '%c', '%s', and '%%'. The goal is to provide a foundational understanding of how formatted output works in C by implementing these features from scratch.

Table of Contents

  1. Usage
  2. Examples
  3. Authors

Usage

To compile the code, use the following command:

gcc -Wall -Werror -Wextra -pedantic -std=gnu89 -Wno-format *.c

To run the program, use: ./a.out

Back to Table of Cotents

Examples

Here are some examples on how to use the '_printf' function:

_printf("Character: [%c}\n", 'H');
_printf("String: [%s]\n", "Hello, World!");
_printf("Percent: [%%]\n");
_printf("Integer: [%d]\n", 42);
_printf("Negative integer: [%d\n", -42);

Back to Table of Cotents

Authors

Natalie Richie
James Hamby
Ari Williams

Back to Table of Cotents

About

First team project Atlas School with Ari

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages