use printf to simplify output

test-strcpy is modified