This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <unistd.h> | |
| void ft_putchar(char c); | |
| void box(int rows, int cols); | |
| int main() { | |
| box(10, 20); | |
| return 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <unistd.h> | |
| #include <stdlib.h> | |
| /* | |
| * board indexes | |
| * | |
| * 00 01 02 03 | |
| * 04 05 06 07 | |
| * 08 09 10 11 | |
| * 12 13 14 15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <unistd.h> | |
| void ft_putchar(char c) | |
| { | |
| write(1, &c, 1); | |
| } | |
| int ft_strlen(char *s) | |
| { |