Hacker News new | ask | show | jobs
by peter_retief 2118 days ago
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?
1 comments

Not the author as I had the same issue, add `#include <locale.h>` after the other headers.
Thanks for the help! It works!