-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathman_3_printf
More file actions
59 lines (50 loc) · 1.55 KB
/
man_3_printf
File metadata and controls
59 lines (50 loc) · 1.55 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.TH _PRINTF 1 2022-04-19 GNU
.SH NAME
_printf \- check format and display data on standard output
.SH SYNOPSIS
.B _printf FORMAT [ARGUMENT] ...
.B _printf OPTION
.SH DESCRIPTION
.B _printf ARGUMENTS(s)
takes unlimted no of arguments with different formats, executes and gives outputs a string to std output. The formats are described below;
.TP
.B Conversion Specifiers
A character that determines the type of conversion to be applied. They include;
.TP
.BR \i " "
The int argument is converted to signed decimal notation.
.TP
.B c " "
The int argument is converted to a char and the resulting character is printed.
.TP
.B s " "
The const char * argument is expected to be a pointer to a string. The character are parsed and written as an array but the null teminator ('\0') is not incuded.
.TP
.B % " "
This is a format specifier, the next value is converted but % is not converted.
.TP
.B b " "
the unsigned int argument is converted to binary and printed on display.
.TP
.B p " "
the void pinter argument is written in hexadecimal then displayed.
.SH OPTION
.TP
.BR \-h "," \-? ", " \-\-help
display this help information.
.TP
.BR \-v ", " \-\-version
outputs the current version
.TP
.BR \-d ", " \-\-dir " " fIpath
outputs only the current version
.SH RETURN VALUE
When the function runs successfully it returns the number of characters printed not including the null byte at the end of the all strings
.SH FILES
.TP
.I /etc/man
.SH Author
written by Erasto Wamuti, Winnie Ouma
.SH SEE ALSO
.B printf(1)
Full Details ⟨http://www.gnu.org/software/coreutils/printf⟩.