-
Notifications
You must be signed in to change notification settings - Fork 0
/
man_3_printf
executable file
·46 lines (32 loc) · 1.2 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
45
46
.TH _PRINTF(1) Manual For Function _printf _PRINTF(1)
.SH NAME
_printf - format and print data
.SH SYNOPSIS
#include <stdio.h>
#include <stdarg.h>
#include <limits.h>
#include <unistd.h>
int _printf(const char *format, ...);
.SH DESCRIPTION
The printf function formats and prints data to standard output according
to the format string format.
The format string may contain format specifiers introduced by the character %.
.SH OPTIONS
-c Prints a character.
-s Prints a string.
-d, -i
Prints an integer.
-%
Prints a percent sign.
.SH RETURN VALUE
The _printf function returns the number of characters printed (excluding
the null byte used to end output to strings).
.SH EXAMPLES
Print a string:
_printf("Hello there, %s!\n", "good morning");
Print an integer:
_printf("This is the answer you are looking for: %d\n", 42);
.SH AUTHORS
This man page was written by Chloe Correia & Wilfried Leroulier.
.SH COPYRIGHT
Copyright © 2023 Holbertonschool.