-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathman_3_printf
67 lines (50 loc) · 1.02 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
62
63
64
65
66
.TH PRINTF 3 "2023-11-28" "Version 1.0" "User Commands"
.SH NAME
_printf \- formats given string and arguments and prints it.
.SH SYNOPSIS
\fB#include <stdio.h>\fR
.br
\fBint _printf(const char *format, ...);\fR
.SH DESCRIPTION
The \fB_printf\fR function formats the input string and arguments and prints it to the standard output.
.SH RETURN VALUE
The function returns the number of bytes printed.
.SH FORMATS
The following format specifiers are supported:
.TP
\fB%%\fR
Prints '%'.
.TP
\fB%c\fR
Takes a character as input.
.TP
\fB%s\fR
Takes a string as input.
.TP
\fB%i\fR
Takes an integer as input.
.TP
\fB%d\fR
Takes a decimal as input.
.TP
\fB%b\fR
Converts input into binary. (Work in progress)
.SH EXAMPLE
.P
\fB_printf("We %s 100%% sure.", "are");\fR
.P
Outputs:
.P
\fBWe are 100% sure.\fR
.P
Returns: 17
.SH REPORTING BUGS
To report bugs, please contact either Fuad Mammadov or Huseyn Israfilov on Slack.
.SH AUTHORS
Huseyn Israfilov
.br
Fuad Mammadov
.SH COPYRIGHT
You are free to use this.
.SH SEE ALSO
\fBprintf(3)\fR