Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
prodigal_erik
on May 26, 2010
|
parent
|
context
|
favorite
| on:
Android Project Changeset 4f8b683: libc/memset.c
I took it as saying you should remember how much of the buffer you have actually used. If you only read what you write, it doesn't matter whether the rest of the buffer is filled with \0 or not, so you can skip the memset.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: