-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathman_3_printf
44 lines (34 loc) · 1.45 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
.TH man_3_printf "October 26, 2020" "version 0.01"
.SH NAME
.B _printf
- a particular implementation of printf function.
.SH SYNOPSIS
_printf(const char *format, ...)
.SH FORMAT OF THE FORMAT STRING
Format - is a character string.
.TP
The format string is composed of zero or more directives: ordinary characters (not %), which are copied unchanged to the output stream; and conversion specifications, each of which results in fetching zero or more sub sequent arguments.
.SH DESCRIPTION
Function produces output according to a format. We handle the conversion specifiers described in OPTIONS.
.TP
Don't reproduced the buffer handling of the C library printf function. Don't handled: the flag characters, field width, precision, the length modifiers
.SH OPTIONS
We handle the conversion specifiers:
.br
.B %c
- Prints a character. The int argument is converted to an unsigned char.
.br
.B %s
- Prints a string. The const char * argument is a pointer to an array of character type (pointer to a string). Characters from the array are written up to (but not including) a terminating null byte ('\0').
.br
.B %d
- Prints a number in decimal. The int argument is converted to signed decimal notation.
.br
.B %i
- Prints a number as integer.
.SH RETURN VALUES
The number of characters printed (excluding tha null byte used to end output to strings). Write output to stdout, the standart output stream.
.SH SEE ALSO
printf(3)
.SH AUTHOR
Natalia Ponsard / Tsetseg Yondongombo