-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathman_3_printf
More file actions
47 lines (40 loc) · 1.02 KB
/
Copy pathman_3_printf
File metadata and controls
47 lines (40 loc) · 1.02 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
.TH _PRINTF "1" "26 March 2023" "0x11" "_printf man page"
.SH NAME
_printf - print data and format
.SH SYNOPSIS
.B printf FORMAT [ARGUMENT]...
.SH DESCRIPTION
Prints ARGUMENT(s) based on FORMAT
If format includes format specifiers (subsequences beginning with %), the additional arguments following format are formatted and inserted in the resulting string replacing their respective specifiers.
_printf will also take an indefinite amount of arguments.
Example:
_printf("%s", text);
In the Example print the value of text with %s give the format of text.
.B The conversion specifiers
.IP %c
- prints character.
.IP %s
- prints string.
.IP %%
- prints percentage symbol.
.IP %d
- prints decimal.
.IP %i
- prints integer number.
.IP %b
- prints binary representation.
.IP %p
- prints pointer.
.IP %o
- prints octal representation.
.IP %r
- prints string in reverse.
.IP %u
- prints unsigned integer.
.IP %x
- prints hexadecimal representation.
.SH SEE ALSO
.I printf (3)
.SH AUTHOR
Antony Muga https://antonymuga.github.io
Nicholas Oyengo