I know there is a system_profiler command that returns information on mac and I also saw someone mention that the source code of that command hasn’t been made public.
How does one find that information considering that the code has to be written in C only? I would like to retrive as much as I can using the code and not call a command and parse its output.
Any ideas?
The sysctl() function may give you the info you want.
In your terminal type