memset null pointer

做個記錄。在 TI AM335x 平台上:

memset(0, 0, 0) -> nothing happened
memset(0, 0, 2) -> segmentation fault

留言

熱門文章