-
Notifications
You must be signed in to change notification settings - Fork 0
/
man_3_printf
43 lines (37 loc) · 1009 Bytes
/
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
.TH _PRINTF "1" "25 July 2021" "0x11" "_printf man page"
.SH NAME
_printf - print string and formated data
.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 %x
- prints hex number.
.IP %X
- prints capital Hex number.
.IP %o
- prints octal number.
.IP %u
- prints unsigned number.
.IP %b
- prints binary of a unsigned integer number.
.IP %p
- prints adresses (broken at the moment).
.IP %R
- prints Rot13 of a number.