-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.md.tpl
54 lines (39 loc) · 1.85 KB
/
README.md.tpl
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
<h1 align="center">
<img width="120" alt="42logo" src="https://user-images.githubusercontent.com/19689770/129336866-169b0dc7-ea41-47d4-b50a-d466508031af.png">
printf
</h1>
<p align="center">
<!-- these values are automatically generated with github actions and github api -->
<img alt="total-views" src="https://img.shields.io/badge/views-total_views-blue">
<img alt="total-clone" src="https://img.shields.io/badge/clone-total_clone-blue">
<!-- buy me a coffee if you want to know how -->
<img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/nach131/ft_printf">
<img alt="GitHub top language" src="https://img.shields.io/github/languages/top/nach131/ft_printf">
<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/nach131/ft_printf">
<img alt="license-MIT" src="https://img.shields.io/badge/license-MIT-blue">
</p>
<span align="center">
![visitors](https://visitor-badge.glitch.me/badge?page_id=nach131.ft_printf&left_color=green&right_color=blue)
![125](https://github.com/nach131/42Barcelona/blob/main/images/100.png)
</span>
<h3 align="center">Write protected</h3>
## Synopsis
```c
int printf(const char *format, ...);
```
La forma más fácil de mirar la cadena de formato es que imprimirá todo en la cadena tal como está, a menos que un carácter tenga un signo de porcentaje **(%)** delante de él.
Ahí es cuando ocurre la magia: el siguiente argumento en la lista de argumentos de printf() se imprime de la manera descrita por el código de porcentaje. Estos códigos de porcentaje se denominan especificadores de formato.
<div align="center">
% | type |
---|------|
%c | character |
%s | string |
%p | pointer |
%d | decimal signed integer |
%i | integer |
%u | unsigned integer |
%x | hex integer (lowercase)|
%X | hex integer (uppercase)|
%% | just the % |
</div>
![](Mapa%20conceptual.png)