-
Notifications
You must be signed in to change notification settings - Fork 0
/
man_3_printf
30 lines (30 loc) · 801 Bytes
/
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
.TH _printf man 3 "23 October 2018" "Printf Project 1.0" "_printf man page"
.SH NAME
.B _printf
.SH SYNOPSIS
.B printf FORMAT [ARGUMENT]...
.SH DESCRIPTION
.B _printf
It is a function that prints ARGUMENT(s) according to FORMAT
.B RETURN VALUE
The function _printf() returns the number of bytes written to the ouput stream (success) and -1 on (failure)
FORMAT characters:
.IP c
Prints a single character
.IP s
Prints a string of characters
.IP %
Prints the percent sign.
.IP d, i
Prints numbers. “%d” prints a decimal number, and “%i” prints an integer in base 10
.SH EXAMPLE
printf produces
(“%c”, H) H
(“%s”, “Hello!”) Hello!
(“%d”, 7) 7
.SH SEE ALSO
.I man 3 printf
.SH BUGS
No known bugs.
.SH AUTHOR(S)
Connor Brereton, Carlos Chan