K
klaushuotari
Sorry to bother you, but I just have to.
What about strdup()? It wasn't in standard C run-time library, yet
many apps use it liberally as it was in there.
I don't know if that particular function is included in C99. Not too
difficult to code own version of it, but why it wasn't included in
library in the first place? Is there some rationale behind it? There
are peculiar and dangerous functions like strtok(), so why not
strdup() which seems to be very useful function?
What might be the reasons to exclude something that useful from
library? And why C++ has the keyword "asm", but C doesn't? I don't
understand.
What about strdup()? It wasn't in standard C run-time library, yet
many apps use it liberally as it was in there.
I don't know if that particular function is included in C99. Not too
difficult to code own version of it, but why it wasn't included in
library in the first place? Is there some rationale behind it? There
are peculiar and dangerous functions like strtok(), so why not
strdup() which seems to be very useful function?
What might be the reasons to exclude something that useful from
library? And why C++ has the keyword "asm", but C doesn't? I don't
understand.