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 <string.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <netdb.h> | |
| #include <netinet/ip.h> | |
| #include <sys/socket.h> | |
| void err() { | |
| write(2, "Fatal error\n", 12); |
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
| //gcc -Wall -Wextra -Werror -std=c98 -o meys biggest_square.c | |
| //echo -e "5.ox\n.....\n.....\noooo.\n.....\n....." | ./meys | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <fcntl.h> | |
| int min3(int a, int b, int c) { | |
| int r = a; | |
| if (b < r) r = b; |
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
| //gcc -Wall -Wextra -Werror -o meys life.c | |
| //echo 'xssdswdxddddsxaadwxwdxwaa' | ./meys 6 4 0 | cat -e | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| int main(int ac, char **av) { | |
| if (ac != 4) | |
| return 1; |