-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathman_3_printf
More file actions
60 lines (55 loc) · 1.35 KB
/
Copy pathman_3_printf
File metadata and controls
60 lines (55 loc) · 1.35 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
.TH man 3 "30 July 2019" "Holberton School"
.SH NAME
.B _printf
- formatted output for printing data
.SH SYNOPSIS
.B #include \(dqholberton.h\(dq
.sp
.B int _printf(const char *format, ...);
.sp
.B int printch(va_list valist);
.sp
.B int prints(va_list valist);
.sp
.B int printdi(va_list valist);
.sp
.B int printper(va_list valist);
.sp
.B int printbi(va_list valist);
.sp
.B int printrev(va_list valist);
.sp
.B int print_rev(char *s);
.sp
.B int printrot(va_list valist);
.sp
.B char *rot13(char *s1);
.sp
.B int _putchar(char c);
.sp
.B int _puts(char *str);
.sp
.SH DESCRIPTION
Prints a formatted string to the standard output as in the printf function of the C standard library. It is a handy way to produce precisely-formatted output from numerical or textual arguments.
.B Format string
A format string that can contain any character.
.B Conversion specifiers
Specify the data type of the variable that its going to be printed.
.sp
.B i, d
- Prints integers and decimals arguments.
.sp
.B c
- Prints a single character.
.sp
.B s
- Prints a string.
.sp
.B %
- An espace sequence for the character %.
.SH NOTES
_printf depends of system call write() which is implemented throught a custom printing function: _putchar.
.SH BUGS
No known bugs. If any bug is detected, please do not hesitate to open an issue.
.SH AUTHORS
Written by Alejandro Mogollon and Paulo Morillo.