title: How to get the UID out of a processes status file with C
body: <p>I'm trying to get the user ID of who a process belongs to within a processes status file in /proc//status. I need to cast this data to an integer to be able to get who the user actually is but have no idea how to. This is the first few lines of the file </p>
  
  <pre><code>    Name:   kworker/0:0
      State:  S (sleeping)
      Tgid:   4
      Pid:    4
      PPid:   2
      TracerPid:  0
      Uid:    0   0   0   0
  </code></pre>
  
  <p>How would I go about getting just the UID? Any help is appreciated!</p>