Giter Site home page Giter Site logo

printf's Introduction

_printf()

ALX team project

Team Members:

Esetevbe George

Egbetamah Oghenero

Objective

  • Create an immitation of printf() c function.
  • The main objective of this team project is to enable us master the act of coding c functions from scratch with collaboration.
  • this will help improve communication skill and introduce us to working in as a team to solve probelms.

Formatted Output with _pritf() function


One of the common task in every program requires printing of some values to allow us get a visual feed back of status or result. There are numerus functions used to print formatted output but printf() is quite rubbust that you can print out multiple characters and other data types together. The seperation and presentation procedure is done in the printf function to ensure all data types are processed and displayed as intended.

In order to send clear command to the printf() function, Texts has to be specified by special characters called specifier. The main specifier of data type in printf() is the % sign followed by any of the listed characters.

Conversion Specifiers:

Spesifier Description
%c convert an int to a n unsigned character and print result as ascii
%i / %d print signed integer decimal number
%u print unsigned decimal number
%o print unsigned octal number
%x print hexadecimal in lower case
%X Print hexadecimal in upper case
%s print the string pointed to by a char *
%p Print a void * argument in hexadecimal
%% Print a sinble '%' character
... ...

Syntax Example:

int _printf(const char *format-string, argument-list);

printf's People

Contributors

georgeeset avatar ghenero 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.