-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathman_3_printf
More file actions
executable file
·46 lines (44 loc) · 1006 Bytes
/
man_3_printf
File metadata and controls
executable file
·46 lines (44 loc) · 1006 Bytes
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
.TH _printf 3 "24 October 2017" "1.0" "_printf Manual"
.SH NAME
.B _printf
formatted output conversion
.SH SYNOPSIS
.B #include "holberton.h"
.PP
.B #include <unistd.h>
.PP
.B #include <stdlib.h>
.PP
.B #include <stdio.h>
.PP
.B #include <stdarg.h>
.PP
.B int printf(const char *format, ...);
.SH DESCRIPTION
Function prints output according to a format as described below. It writes the output to standard output.
.SH Return Value
The function returns numbers of characters printed excluding the null byte upon successful completion. The function returns -1 on error.
.SH Format Specifying Characters
User can specify following characters followed by % sign:
.B c:
The character argument writes a character
.PP
.B s:
The string argument prints a string.
.PP
.B d, i:
The digit and int argument prints a digit or an integer.
.PP
.B %
The % sign can be used to print percent sign
.PP
.SH Example
.PP
_printf("Example string %s", string);
.PP
.SH Bugs
.PP
No known bugs.
.PP
.SH AUTHOR
Sue Kalia, Henry Hsu