zakariaaitali / printf Goto Github PK
View Code? Open in Web Editor NEWPrintf project for ALX Software Engineer Program
Printf project for ALX Software Engineer Program
Handle the following conversion specifier: p.
Handle the following custom conversion specifier:
Handle the precision for non-custom conversion specifiers.
Use a local buffer of 1024 chars in order to call write as little as possible.
Handle the following custom conversion specifier:
Handle the following custom conversion specifiers:
alex@ubuntu:~/c/printf$ cat main.c
#include "main.h"
/**
* main - Entry point
*
* Return: Always 0
*/
int main(void)
{
_printf("%b\n", 98);
return (0);
}
alex@ubuntu:~/c/printf$ gcc -Wall -Wextra -Werror -pedantic -std=gnu89 main.c
alex@ubuntu:~/c/printf$ ./a.out
1100010
alex@ubuntu:~/c/printf$
Handle the following flag characters for non-custom conversion specifiers:
+
#
Handle the 0 flag character for non-custom conversion specifiers.
Handle the following custom conversion specifier:
alex@ubuntu:~/c/printf$ cat main.c
#include "main.h"
/**
* main - Entry point
*
* Return: Always 0
*/
int main(void)
{
_printf("%S\n", "Best\nSchool");
return (0);
}
alex@ubuntu:~/c/printf$ gcc -Wall -Wextra -Werror -pedantic -std=gnu89 main.c
alex@ubuntu:~/c/printf$ ./a.out
Best\x0ASchool
alex@ubuntu:~/c/printf$
Handle the following conversion specifiers:
Handle the following length modifiers for non-custom conversion specifiers:
Conversion specifiers to handle: d, i, u, o, x, X
All the above options work well together.
Well done on completing this project! Let the world hear about this milestone achieved.
Handle the following conversion specifiers:
Write a function that produces output according to a format.
Handle the field width for non-custom conversion specifiers.
Handle the - flag character for non-custom conversion specifiers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.