• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Just started programming on a linux box

tfinch2

Lifer
Is there a system call I can use in C to get the number of users currently logged on it a system? Right now I'm forking a process of a shell script to do the work and waiting, but now performance matters and I want do accomplish it a little more cleanly.
 
Well, I don't know the answer but one way to find out might be to study the source code of who(1).
 
Back
Top