GithubHelp home page GithubHelp logo

printf's Introduction

Printf ALX Group Prject

C programming for ALX School!

==================================================================================

_printf is a custom implementation of the C programming function printf. This project is an application of the C programming knowledge that Holberton School cohort 3 students have learned since starting the program on May 1, 2017.

synopsis The objective of the printf project is to learn the base functionality of printf, take those concepts and apply them ourselves to create a new printf that works in the same way. Enviroment our printf project has been teasted on ubuntu 20.04 LTS Prototype: int _printf(const char *, ...);

Examples String

Input: _printf("%s\n", 'This is a string.'); Output: This is a string. Character

Input: _printf("The first letter in the alphabet is %c\n", 'A'); Output: The first letter in the alphabet is A Integer

Input: _printf("There are %i dozens in a gross\n", 12); Output: There are 12 dozens in a gross

Decimal Input: _printf("%d\n", 1000); Output: 1000

Project Requirements All files will be compiled on Ubuntu 20.04 LTS Programs and functions will be compiled with gcc 4.8.4 using flags -Wall -Werror -Wextra and -pedantic Code must follow the Betty style Global variables are not allowed Authorized functions and macros: write (man 2 write) malloc (man 3 malloc) free (man 3 free) va_start (man 3 va_start) va_end (man 3 va_end) va_copy (man 3 va_copy) va_arg (man 3 va_arg)

Mandatory Tasks Write function that produces output with conversion specifiers c, s, and %. Handle conversion specifiers d, i. Create a man page for your function. Advanced Tasks Handle conversion specifier b. Handle conversion specifiers u, o, x, X. Use a local buffer of 1024 chars in order to call write as little as possible. Handle conversion specifier S. Handle conversion specifier p. Handle flag characters +, space, and # for non-custom conversion specifiers. Handle length modifiers l and h for non-custom conversion specifiers. Handle the field width for non-custom conversion specifiers. Handle the precision for non-custom conversion specifiers. Handle the 0 flag character for non-custom conversion specifiers. Handle the custom conversion specifier r that prints the reversed string. Handle the custom conversion specifier R that prints the rot13'ed string. All above options should work well together. #Repository Contents The repository contains the following files FILE Description printf.c printf a file containing the _printf function and get function holberton.h contains function and struct declarations inttostr.c holds functions which converts integers to strings help_funcs.c contains functions of printers help_funcs_2.c contains functions of printers README.md contains this help description man_3_printf contains manual of this functions

AUTHORS

BANDE Abdoul Aziz

printf's People

Watchers

James Cloos avatar Abdoul Aziz BANDE 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.