Re:Regression in Linux 4.14 – using bcache can destroy the f...
by koverstreet on Tuesday November 21, 2017 @07:49PM
(#15753210)
You can return structs just fine in C. The reason it's not generally done in practice is because C lacks return value optimization - the compiler (almost?) always has to do a hidden memcpy() at the end of your function due to pointer aliasing.
[ Parent
| on HN ]
There are no comments on this comment yet.