Function: hexl-octal-string-to-integer

hexl-octal-string-to-integer is an interactive and byte-compiled function defined in hexl.el.gz.

Signature

(hexl-octal-string-to-integer OCTAL-STRING)

Documentation

Return decimal integer for OCTAL-STRING.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/hexl.el.gz
(defun hexl-octal-string-to-integer (octal-string)
  "Return decimal integer for OCTAL-STRING."
  (interactive "sOctal number: ")
  (let ((oct-num 0))
    (while (not (equal octal-string ""))
      (setq oct-num (+ (* oct-num 8)
		       (hexl-oct-char-to-integer
			(string-to-char octal-string))))
      (setq octal-string (substring octal-string 1)))
    oct-num))