Re:Deciding to rewrite getaddrinfo in rust
by lmb on Tuesday February 23, 2016 @02:16PM
(#11161496)
I think you have proven my point. I'm talking about this:
Maybe I'm extrapolating here, but it surprised me.
[ Parent
| on HN ]
Re:Deciding to rewrite getaddrinfo in rust
by dcohenp on Tuesday February 23, 2016 @04:39PM
(#11162566)
That is indeed what the post you're replying to meant. Note that the pointed-to value is a constant string, yet the pointer itself is being modified. That's a fairly common idiom in C string-handling code, only possible because it's a const char , not a const char const.