Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sramsay
on April 14, 2020
|
parent
|
context
|
favorite
| on:
Tell HN: C Experts Panel – Ask us anything about C
strdup seems like a perfect example of "standardizing existing practice." And it has never struck me as running against the spirit of C.
DougGwyn
on April 14, 2020
[–]
In fact I proposed strdup on a few occasions, but it wasn't adopted. It seems that they didn't like for standard library functions to use malloc. POSIX.1 specifies strdup.
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: