Git Product home page Git Product logo

printf's Introduction

ALX Software Engineering Printf Team Project

Printf Team Project

Table of Contents

  1. Introduction
  2. Project Description
  3. Installation
  4. Usage
  5. Supported Conversion specifiers
  6. Contributing
  7. Licence
  8. Author

Introduction

Welcome to our amazing team project on creating a custom "printf" function for the C programming language. In this project we have developed a function called _printf that mimics the behavior of the standard function "Printf", allowing you to print formatted output to the standard output stream.

Project Description

Our custom _printf function has been optimized to handle various inputs and optional arguments, providing you with flexibility similar to the standard "printf" function. The primary purpose of _printf is to write formatted output to the standard output stream(stdout) without relying on any of the std library files. It returns the total number of characters printed (excluding the null byte at the end of strings) after a successful execution. In case of an output error, it returns a negative value of -1.

Installation

a. create a repo with the name printf

b. on your sandbox, git clone git clone https://github.com/your-username/printf-team-project.git

c. Include the _printf function in your project source file

d. Compile your project, linking with the printf.c file containing the _printf implementation gcc -Wall -Werror -Wextra -pedantic main.c printf.c -o my_program

Usage

The prototype of our _printf function is "int _printf(const char *format, ...);" It accepts a "format" string and an optional number of arguments based on the format specifiers provided in the "format" string. The string contains zero or more directive that control the output format

Supported Conversion Specifiers

Our _printf function supports the following conversion specifiers:

a. %c: Character

b. %s: String

c. %%: Percent sign

Contributing

We welcome contributions from the community to improve our _printf function. If you find any bugs or have suggestions for enhancement, feel free to submit a pull request or open an issue in the repository.

Licence This project is licensed under the ALX Software Engineering program.

AUTHORS

DELPHINE UZOETO

BAWO VICTOR EJUEYITCHIE

printf's People

Contributors

bawowhite avatar delphineuzoeto 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.