Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.15 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.15 KB

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