-
Notifications
You must be signed in to change notification settings - Fork 1
/
man_3_printf
61 lines (61 loc) · 1.3 KB
/
man_3_printf
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
59
60
61
.\" Automatically generated by Pandoc 2.14.1
.\"
.TH "print" "1" "july 12 2022" "print 1.0.0" ""
.hy
.SH NAME
.PP
_printf - format and print data
.SH SYPNOPSIS
.PP
\f[B]print\f[R] FORMAT [ARGUMENT]\&...
.SH DESCRIPTION
.PP
\f[B]Print\f[R] A custom function that prints arguments(s) according to
the format.
.SH USAGE
.PP
use the following key characters to format arguments:
.PP
\f[B]%c\f[R]: print characters
.PP
\f[B]%s\f[R]: print strings
.PP
\f[B]%\f[R]: prints percentage;
.PP
\f[B]%d\f[R]: print intergers of type int
.PP
\f[B]%i\f[R]: print integers of type int
.PP
\f[B]%b\f[R]: print binary numbers
.PP
\f[B]%u\f[R]: print unsigned integers of type int
.PP
\f[B]%x\f[R]: print hexadecimal numbers in lowercase
.PP
\f[B]%X\f[R]: print hexadecimal numbers in uppercase
.PP
\f[B]%o\f[R]: print octal numbers
.PP
\f[B]%r\f[R] : prints string in reverse order
.PP
\f[B]%R\f[R] : prints string in ROT13 encoding
.PP
\f[B]%p\f[R]: print pointer addresses
.PP
\f[B]\[cq] \[cq]\f[R]: print a space
.PP
\f[B]#\f[R]: modifier for unsigned conversions
.PP
\f[B]+\f[R]: prints a plus sign in front of the number
.SH RETURN VALUES
.PP
The print() function returns an integer representing the number of
symbols printed not counting \[rs]o for the string.
.SH BUGS
.PP
None yet!
.SH SEE ALSO
.PP
printf(3)
.SH AUTHORS
Tekle Gebreyesus