fork(1) download
  1. #!/bin/sh
  2. # your code goes here
  3.  
  4. sed '/)$/{N;s/)\n{/) {\n\ttime_exe(__func__, cl(clock()));/;t;P;D}'
Success #stdin #stdout 0s 19632KB
stdin
# this substitution will work
void some_function_declaration(char var1, char var2)
{
  ...
}
# (and this one too !)
void some_function_declaration(char var1, char var2)
{
  ...
}
stdout
# this substitution will work
void some_function_declaration(char var1, char var2) {
	time_exe(__func__, cl(clock()));
  ...
}
# (and this one too !)
void some_function_declaration(char var1, char var2) {
	time_exe(__func__, cl(clock()));
  ...
}