4 ms·
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 po
by rossy 13y ago
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 13y agoAnd... SDS and plain strings are both char pointers so even with _Generic it is probably not possible to do that.