c: memory test