summaryrefslogtreecommitdiff
path: root/genheader.sh
diff options
context:
space:
mode:
authorepochqwert <epoch@hacking.allowed.org>2015-03-31 12:54:01 -0500
committerepochqwert <epoch@hacking.allowed.org>2015-03-31 12:54:01 -0500
commit5fc8d2a2fbbe55fb3f92c4edd216f9e96d21a288 (patch)
tree8aecb5ad9887edf3d5261ebe0cc5f2263497fa87 /genheader.sh
downloadlibhashtable-5fc8d2a2fbbe55fb3f92c4edd216f9e96d21a288.tar.gz
libhashtable-5fc8d2a2fbbe55fb3f92c4edd216f9e96d21a288.zip
init commit after splitting from segfault
Diffstat (limited to 'genheader.sh')
-rwxr-xr-xgenheader.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/genheader.sh b/genheader.sh
new file mode 100755
index 0000000..3995579
--- /dev/null
+++ b/genheader.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cat libhashtable.c | head -n 22 | tail -n 16 > hashtable.h
+cat libhashtable.c | grep '(.*) *{' | egrep -v 'if|for|while' | sed 's/ {/;/' >> hashtable.h