#!/usr/bin/env bash
f=${1%.c} # remove .c from filename if it exists
if [ ! -e "$f.c" ]
then
	cp ~/docs/code/boilerplate/template.c "$f.c"
fi
"$EDITOR" "$f.c"