Any C devs catch a silly mistake here? Seems like it should work? https://stackoverflow.com/questions/45268988/return-a-struct-with-string-from-a-multi-threaded-rpc-server …
-
-
Right, you can sizeof(“foo”) because it’s a const char* which means the compiler can determine how big it is at compile time.
-
`const char *x = "foo"; sizeof(x)` is different. Very C thing to make those behave differently. >_>
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.