26 lines
298 B
Plaintext
Executable file
26 lines
298 B
Plaintext
Executable file
EM_TABLE=../../../etc/em_table
|
|
ed - $EM_TABLE << EOF
|
|
1,/^\$/d
|
|
1,/^\$/d
|
|
1,\$s/^\(...\).*/int C_\\1();/
|
|
w blabla1
|
|
q
|
|
EOF
|
|
ed - $EM_TABLE << A
|
|
1,/^\$/d
|
|
1,/^\$/d
|
|
/^\$/d
|
|
1,\$s/^\(...\).*/C_\\1,/
|
|
\$a
|
|
};
|
|
.
|
|
1i
|
|
static int (*C_funcs[])() = {
|
|
0,
|
|
.
|
|
w blabla2
|
|
q
|
|
A
|
|
cat blabla1 blabla2 > C_funcs
|
|
rm blabla1 blabla2
|