Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 30 lines (23 sloc) 0.494 kb
#!/bin/sh
CC="gcc -std=c99"
CFLAGS="-O2 -pipe -Wall -Wextra -pedantic"
src=/tmp/tmp$$.c
out=/tmp/tmp$$
trap 'rm -f "$out" "$src"' EXIT
cat > "$src" <<HEREDOCTHEREDOCEVERYWHEREADOCDOC
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <sys/stat.h>
#include <unistd.h>
int main(void) {
$@
return 0;
}
HEREDOCTHEREDOCEVERYWHEREADOCDOC
$CC $CFLAGS $src -o "$out" && "$out"
Jump to Line
Something went wrong with that request. Please try again.