- 📝 Add comment or doc
- 🎁 New feature.
- 🐛 Bug fix
- 💣 Breaking compatibility.
- ✅ Write test.
- 🔥 Remove something.
- 🍺 I'm happy like reduced code complexity.
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> | |
int main(int argc, char *argv[]) { | |
FILE *fp; | |
void filecopy(FILE *, FILE *); | |
char *prog = argv[0]; | |
if (argc == 1) |
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 <stdarg.h> | |
#include <stdio.h> | |
void minprintf(char *fmt, ...); | |
void minprintf(char *fmt, ...) { | |
va_list ap; | |
char *p, *sval; | |
int ival; |
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
/** | |
* simple grep in c | |
*/ | |
#include <stdio.h> | |
#define MAXLINE 1000 | |
int getOneLine(char line[], int max); | |
int strindex(char source[], char searchfor[]); | |
char pattern[] = "ould"; |
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
/** | |
* simple word count in c | |
*/ | |
#include <stdio.h> | |
#define IN 1 | |
#define OUT 0 | |
int main(int argc, const char * argv[]) { | |
int c, nl, nw, nc, state; | |
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
const state = { | |
} | |
const getters = { | |
} | |
const actions = { |
NewerOlder