Y
Hacker News
new
|
ask
|
show
|
jobs
by
lelanthran
1065 days ago
It also, in some situations, returns a *string" that doesn't have the null terminator, which means it is giving the caller something that literally isn't a string.
1 comments
masklinn
1065 days ago
It always “returns” the same thing: a fixed size nul-padded buffer. Call it a char array if you want, that’s always been it’s role and contract.
link