-
Notifications
You must be signed in to change notification settings - Fork 1
/
man_3_printf
executable file
·73 lines (58 loc) · 1.05 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
67
68
69
70
71
72
73
#!/bin/bash
echo ".\" Manual Page for _printf
.TH PRINTF 3 "2023-12-01" "Version 1.0.0.0.1"
.SH NAME
_printf \- produces output according to a format
.SH SYNOPSIS
\fBinclude "main.h"\fR
.br
\fBint _printf(const char *format, ...);\fR
.SH DESCRIPTION
Produces output according to a format.
.br
In case of misused type function will return error.
.SH RETURN VALUE
Returns the length of output.
.SH FORMATS
Formats of _printf function:
.TP
\fB%c\fR
Char argument's flag.
.TP
\fB%s\fR
String argument's flag.
.TP
\fB%i\fR
Integer argument's flag.
.TP
\fB%d\fR
Decimal argument's flag.
.TP
\fB%%\fR
Prints '%'
.SH EXAMPLE
.P
\fB_printf("Let\'s print %c simple %s.", 'a' "sentence");
.P
Output: \fBLet's print a simple sentence.\fR
.P
Return: 29
.SH REPORTING BUGS
Contact with Authors
.SH AUTHORS
Isa Guliyev
.br
Rashad Malikov
.SH COPYRIGHT
Free to use.
.SH SEE ALSO
man _putchar.c
.br
man print_char.c
.br
man print_string.c
.br
man print_decimal.c" > man_3_printf.1
mv man_3_printf.1 /usr/local/man/man1/
gzip -f /usr/local/man/man1/man_3_printf.1
man man_3_printf