- https://pauladamsmith.com/blog/2015/01/how-to-get-started-with-llvm-c-api.html
- http://walfield.org/blog/2010/08/25/lambdas-in-c.html
- http://www.holub.com/software/compiler.design.in.c.html
- http://stephen-brennan.com/2015/01/16/write-a-shell-in-c/
- http://programmers.stackexchange.com/questions/62502/small-c-projects
- https://github.com/ryanmjacobs/c
- http://stackoverflow.com/questions/599365/what-is-your-favorite-c-programming-trick
- http://danluu.com/malloc-tutorial/
- http://cslibrary.stanford.edu/101/
- http://libcello.org
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 <stdlib.h> | |
int main(void) | |
{ | |
FILE *fp = fopen("file.c", "r"); | |
char *line = NULL; | |
size_t linelen = 0; | |
ssize_t len; |
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
/* astyle --style=kr --indent=spaces=4 --indent-switches --pad-oper --pad-header --align-pointer=name --add-brackets -n main.c | |
* astyle -A3s4SpHk3jn main.c | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
enum state { | |
NONE = 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 <stdio.h> | |
#include <stdarg.h> | |
int sum(int argc, ...) | |
{ | |
int res = 0; | |
va_list ap; | |
va_start(ap, argc); |
/etc/make.conf
WITH_PKGNG= yes
WITH_PGSQL_VER= 93
DEFAULT_VERSIONS= ruby=2.1 python=2.7
commands
% cd /usr/ports/ports-mgmt/pkg
% make install clean
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
diff --git a/src/latex_modules/index.py b/src/latex_modules/index.py | |
index eb59023..a682788 100644 | |
--- a/src/latex_modules/index.py | |
+++ b/src/latex_modules/index.py | |
@@ -38,7 +38,7 @@ this argument, they apply to all indices declared at the point where they | |
occur. | |
""" | |
-import os, os.path, re | |
+import os, os.path, re, string |
NewerOlder