Skip to content

Instantly share code, notes, and snippets.

View apotheon's full-sized avatar
🐙
What are you doing, Dave?

apotheon apotheon

🐙
What are you doing, Dave?
  • the 25th century
View GitHub Profile
#include <stdio.h>
int main() {
int i = 0;
int intarray[10] = {1, 2, 7, 4, 3, 7, 3, 9, 5, 0};
char chararray[10] = {'h', 'e', 'l', 'l', 'o', ' ', 'y', 'o', 'u', '\0'};
while (i < 10) {
printf("%d\n", intarray[i]);
@apotheon
apotheon / FUGPL.txt
Last active August 29, 2015 14:03 — forked from schacon/FUGPL.txt
punctuation- and grammar-corrected, slightly clarified FUGPL ("anti-gpl license")
The FUGPL License
===================
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software with the restriction that no part of
it may be included in software projects that are solely distributed under
strong copyleft restricted licenses. This license is *NOT* GPL compatible.
There otherwise exist no restrictions on using this software, including
@apotheon
apotheon / 0 - UNIX Fifth Edition
Created June 1, 2014 19:58
UNIX V5, OpenBSD, Plan 9, FreeBSD, and GNU coreutils implementations of echo.c
main(argc, argv)
int argc;
char *argv[];
{
int i;
argc--;
for(i=1; i<=argc; i++)
printf("%s%c", argv[i], i==argc? '\n': ' ');
}
#include <unistd.h>
#include <sys/types.h>
#include <dirent.h>
#include <stdio.h>
void listdir(const char *name, int level)
{
DIR *dir;
struct dirent *entry;