fork(2) download
  1. #!/bin/bash
  2.  
  3. sed '/)$/!b;n;/^{/c{ time_exe(__func__, cl(clock()));'
Success #stdin #stdout 0s 19632KB
stdin
# this substitution will work
void some_function_declaration(char var1, char var2)
{
  ...
}
# (but this one will fail)
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()));
  ...
}
# (but this one will fail)
void some_function_declaration(char var1, char var2)
{
  ...
}