Errno.swift 335 B

12345678910111213141516
  1. //
  2. // Errno.swift
  3. // Swifter
  4. //
  5. // Created by Damian Kolakowski on 13/07/16.
  6. // Copyright © 2016 Damian Kołakowski. All rights reserved.
  7. //
  8. import Foundation
  9. public class Errno {
  10. public class func description() -> String {
  11. return String.fromCString(UnsafePointer(strerror(errno))) ?? "Error: \(errno)"
  12. }
  13. }