1. delete useless code 2. add const to Parameter which not been changed 3. check return code when call safe function memcpy_s