|
|
|
|
|
by matheusmoreira
2931 days ago
|
|
>great facilities afforded by language Sometimes those aren't so great. For example, C has errno, a thread-local variable that gets set to the error code of the last function you called. Why can't the function just return the error code? I think it's strange how all the Linux system calls do return error codes but the standard library puts them in errno anyway. I really like writing freestanding C because I can avoid most of the legacy. |
|