TE
TechEcho
Home
24h Top
Newest
Best
Ask
Show
Jobs
English
GitHub
Twitter
Home
Why is there no realloc that takes the number of bytes to copy?
1 points
by
g0xA52A2A
about 1 year ago
2 comments
compressedgas
about 1 year ago
Why not a realloc which just fails if it has to copy?
dave4420
about 1 year ago
Is it good enough to realloc down to the number of bytes you’d want copying, and then realloc up to your desired buffer size?