add printSES function for custom Printer

Partched by Hu Shubin
add strdiff_cp