From 2c8ee9a45f6eae56f49ee2ba7288f67a6837319d Mon Sep 17 00:00:00 2001 From: Fernando Gonzalez-Morales <542@holbertonschool.com> Date: Wed, 24 Oct 2018 16:43:42 +0000 Subject: [PATCH 1/3] Removed extraneous printf.1 --- printf.1 | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 printf.1 diff --git a/printf.1 b/printf.1 deleted file mode 100644 index 39870c0..0000000 --- a/printf.1 +++ /dev/null @@ -1,32 +0,0 @@ -.TH PRINTF 1 -.SH NAME -printf \- display characters, strings, and integers on stdout -.SH SYNOPSIS -.B printf -[OPTIONS] -.IR file -[%c characters] [%s strings] [%i or %d integers] -.LP -.B printf -[OPTIONS] -.IR file -[%c characters] [%s strings] [%i or %d integers] -.SH DESCRIPTION -.B printf -printf writes data entered by user to standard output -.br -.SH 1 \- PRINTF -.TP -.BR Example -.br -.SAMPLE - - - -.SH OPTIONS -.TP -.BR \ %s ", " \ %c ", " \ %i ", " \ %d -"s" indicates that user will enter a string. -"c" indicates that user will enter a character. -"i" indicates that user will enter a integer. -"d" indicates that user will enter a interger. From bf466d8acfe9f25a0b8270cd7a5e325ea3bdb0b9 Mon Sep 17 00:00:00 2001 From: Fernando Gonzalez-Morales <542@holbertonschool.com> Date: Wed, 24 Oct 2018 16:50:06 +0000 Subject: [PATCH 2/3] Added function prototype and format specifiers (implemented) --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8cb0d25..b90d25c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,22 @@ # 0x10 - C - printf ---- + ## DESCRIPTION First Holberton School group project in the Low Level Programming track. +#### Function prototype +``` +int _printf(const char *format, ...); +``` +#### Implemented format specifiers + +| Specifier type | Description | +| --- | --- | +| c | Single character | +| s | String of characters | +| d or i | Signed decimal integer | +| b | Unsigned binary | +| u | Unsigned decimal integer | +| o | Unsigned octal | + ## Authors `Fernando González-Morales, Stefan Silverio` From 7ae4c31b889390a2ad25dc4cd308040c9ade2c1a Mon Sep 17 00:00:00 2001 From: Fernando Gonzalez-Morales <542@holbertonschool.com> Date: Wed, 24 Oct 2018 16:54:50 +0000 Subject: [PATCH 3/3] Added compilation and testing --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index b90d25c..efaf3ac 100644 --- a/README.md +++ b/README.md @@ -18,5 +18,14 @@ int _printf(const char *format, ...); | u | Unsigned decimal integer | | o | Unsigned octal | +#### Compilation and testing + +We compiled via: +``` +$ gcc -Wall -Werror -Wextra -pedantic *.c +``` + +We also have some tests in the `tests` folder. Feel free to suggest more. + ## Authors `Fernando González-Morales, Stefan Silverio`