-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathman_3_printf
More file actions
43 lines (34 loc) · 1.12 KB
/
Copy pathman_3_printf
File metadata and controls
43 lines (34 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.TH man 3 "18 APRIL 2022" "3.0" "_printf function man page"
.SH NAME
_printf - Replication of printf function
formatted output
.SH SYNOPSIS
.B #include "main.h"
.B int _printf(const char *format, ...);
.SH DESCRIPTION
.B _printf() function produce output based on the format string
the string dictates how subsequent arguments are converted for output
.B Format of the format string
The format string is a character string composed of zero or more directives: ordinary characters (not %), which are copied unchanged to the output stream;
and conversion specifications which result in fetching zero or subsequent arguments
.SH Conversion specifier
- A character that specifies the the type of conversion to be applied
.B %c
- prints a character
.B %%
- prints a %
.B %s
- prints a string
.B %d, %i
- prints an integer
.B Return value
- Upon sucessful return, return the number of characters printed except the NULL byte used to terminate strings
- If error is encountered, a negative value is returned
.B SH EXAMPLE
#include "main.h"
_printf("%i", 33);
_printf("%c", A);
.SH SEE ALSO
man printf(3)
.SH AUTHOR
Barine Desire && Shuaib Mujahid