param: turn 'printcap name' into a generated function