Function: erc-string-to-port

erc-string-to-port is a byte-compiled function defined in erc.el.gz.

Signature

(erc-string-to-port S)

Documentation

Convert string S to either an integer port number or a service name.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc-string-to-port (s)
  "Convert string S to either an integer port number or a service name."
  (if (numberp s)
      s
    (let ((n (string-to-number s)))
      (if (= n 0)
          s
        n))))