add printSES function for custom Printer

Patched by Hu Shubin
add strdiff_cp