-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathman_3_printf
73 lines (53 loc) · 1.28 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
.TH man 3 "11 Nov 2024" "1.0" "_printf"
.SH NAME
.B _printf
- a function to print a string
.SH SYNOPSIS
.B #include
"main.h"
.B int _printf
(const char *format, ...);
.SH DESCRIPTION
This function
.B_printf()
produce output according to a format. The function write output to
.I stdout.
.SP
This function write the output under the control of a
.I format
string that specifies how subsequent argument are converted for output.
(Arguments accessed via the variable length argument facilities of
.I stdarg(3)).
.SP
.SS Conversion specifiers
The character % following by a character that specifies the type of conversion
applied. The conversion specifier and their meanings are:
.SP
.B c
The int argument is converted to a
.BI char
and the resulting character is written.
.SP
.B s
.SP
.B %
.SP
.B i, d
.SH RETURN VALUE
Upon successful return, these functions return the number of
bytes printed (excluding the null byte used to end output to
strings).
.SH EXAMPLES
To print a string:
.SP
#include "main.h"
char *str = "World";
_printf("Hello %s", str);
To print Hello World
.SH SEE ALSO
printf(1), printf(3), asprintf(3), puts(3), scanf(3),
setlocale(3), strfromd(3), wcrtomb(3), wprintf(3), locale(5)
.SH BUGS
No known bugs.
.SH AUTHORS
REGNIER Simon, PIERRE Matthieu and JULIEN Damien