Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rossy
on Feb 6, 2014
|
parent
|
context
|
favorite
| on:
Simple Dynamic Strings library for C
C99 doesn't support function overloading. I guess that style is used by everything that wants to expose a C compatible API.
Come to think of it, it might be possible to do that with C11 _Generic.
antirez
on Feb 6, 2014
[–]
And... SDS and plain strings are both char pointers so even with _Generic it is probably not possible to do that.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Come to think of it, it might be possible to do that with C11 _Generic.