interface_address   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/external/libc.xtm

Implementation

;; ip4 only
(bind-func interface_address
  (lambda (name)
    (let ((ifs:ifaddrs** (alloc)))
      (pset! ifs 0 null)
      (getifaddrs ifs)
      (_interface_address name (pref ifs 0)))))


Back to Index

Similar Entries