The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the
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> | |
| char **perms; // Dynamic array to store permutations | |
| int perm_count = 0; | |
| int str_len; | |
| void swap(char *a, char *b) | |
| { | |
| char t = *a; |
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> | |
| #define MAX_LEN 10 | |
| #define MAX_PERM 3628800 // 10! | |
| char perms[MAX_PERM][MAX_LEN]; // Array to store all permutations | |
| int perm_count = 0; | |
| void swap(char *a, char *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
| #include <string.h> | |
| #include <unistd.h> | |
| #include <sys/wait.h> | |
| #include <stdlib.h> | |
| // Function to write an error message to stderr | |
| void err(char *str) | |
| { | |
| // Loop through each character in the string and write it to stderr | |
| while (*str) |
A little info about your project and/ or overview that explains what the project is about.
A short description of the motivation behind the creation and maintenance of the project. This should explain why the project exists.
Build status of continus integration i.e. travis, appveyor etc. Ex. -
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 <limits.h> | |
| #include <unistd.h> | |
| #include <stdarg.h> | |
| int ft_putchar(char c) | |
| { | |
| return (write(1, &c, 1)); | |
| } | |
| int ft_putstr(char *s) |