Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is it bad that for all application uses, I reach for `asprintf`?

As well as reaching for the %ms format for scanf for reading input.

For buffers, I use memcpy and length tracking. Any other approach seems like unnecessary headache. Or maybe modern hardware has spoiled me?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: