-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathman_3_printf
More file actions
97 lines (96 loc) · 1.98 KB
/
Copy pathman_3_printf
File metadata and controls
97 lines (96 loc) · 1.98 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
.\" Hello there! this file is -man_3_printf.3- nroff source.
.\"
.\" This man page was made by: C16 Andrés Medina
.\" C16 Alejandro Pineda
.\" Made as a mandatory proyect for Holberton School.
.\" November the 09th, 2021.
.\"
.TH _Printf 3 2021-11-09 "@TheRealMedi & @Apinedas" "Manual de _Printf"
.SH NAME
_printf - writes output to standard output.
.SH SYNOPSIS
int _printf(const char *format, ...);
.SH DESCRIPTION
.B _printf
writes output to standard output.
The function writes under the control of a format string that specifies how consecutive arguments (accessed via the variable-length facilities of stdarg) are converted for output.
.SH OPTIONS
Assuming all the .c dependencies have been installed, you can use a '%' then a conversion specifier.
You have this options:
.TP
.B -d
.I The d argument is convert to char for decimal notation.
.TP
.B -i
.I The i argument ic convert to char for integer notation.
.TP
.B -o
.I The unsigned int argument is converted to octal.
.TP
.B -u
.I The unsigned int argument is converted to unsigned decimal.
.TP
.B -x
.I The unsigned int argument is converted to lowercase hexadecimal.
.TP
.B -x
.I The unsigned int argument is converted to uppercase hexadecimal.
.TP
.B -c
.I The int argument is converted to char for character notation.
.TP
.B -s
.I Arguments are printed as a string.
.TP
.B -%
.I A % is written. No argument is converted.
.TP
.B -r
.I String arguments are printed in reverse.
.TP
.B -R
.I strings arguments are coded in ROT13.
.SH FILES
To make _printf work, you must install all .c dependences first wich are:
.nf
.I cases1.c
.fi
.nf
.I cases2.c
.fi
.nf
.I cases3.c
.fi
.nf
.I get_printf_cases.c
.fi
.nf
.I inigers_functions.c
.fi
.nf
.I main.h
.fi
.I replace.c
.nf
.I string_functions.c
.fi
.SH EXAMPLE
.nf
int main()
{
_printf("%c\n", 48);
}
output:
0
.fi
.SH KNOWN BUGS
.TP
.B S
.I The string is not printed as it should.
.SH AUTHORS
.B @TheRealMedi
- github.com/TheRealMedi
.br
.B @Apinedas
- github.com/Apinedas
.br