title: Check OS version in Swift?
body: <p>I'm trying to check system information in Swift. I figured out, that it could be achieved by code:</p>
  
  <pre><code>var sysData:CMutablePointer&lt;utsname&gt; = nil
  let retVal:CInt = uname(sysData)
  </code></pre>
  
  <p>I have two problems with this code:</p>
  
  <ol>
  <li>What should be sysData's initial value? This example gives -1 in retVal probably because sysData is nil.</li>
  <li>How can I read information from sysData?</li>
  </ol>