summaryrefslogtreecommitdiff
path: root/libhashtable/genheader.sh
blob: 399557928a09f7cfed1210db869b47221ddc48c4 (plain) (blame)
1
2
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