Function: s-pad-right

s-pad-right is a byte-compiled function defined in s.el.

Signature

(s-pad-right LEN PADDING S)

Documentation

If S is shorter than LEN, pad it with PADDING on the right.

Source Code

;; Defined in ~/.emacs.d/elpa/s-20220902.1511/s.el
(defun s-pad-right (len padding s)
  "If S is shorter than LEN, pad it with PADDING on the right."
  (declare (pure t) (side-effect-free t))
  (let ((extra (max 0 (- len (length s)))))
    (concat s
            (make-string extra (string-to-char padding)))))