Re:The Unix `Who` Command
by peter_retief on Thursday September 03, 2020 @10:06AM
(#24364163)
I love your simple demonstration of strace reverse engineering a UNIX command.
Probably a very silly question but I get this compile error?
mywho.c:8:13: error: use of undeclared identifier 'LC_ALL'
setlocale(LC_ALL, "");
I should solve it myself but since you are here?
[ Parent
| on HN ]
Re:The Unix `Who` Command
by forgotpwd16 on Thursday September 03, 2020 @11:59AM
(#24365359)
Not the author as I had the same issue, add `#include <locale.h>` after the other headers.
Re:The Unix `Who` Command
by peter_retief on Thursday September 03, 2020 @02:54PM
(#24367407)
Thanks for the help!
It works!