(chars-to-c-str char-lst) → c-str
Function:
(defun chars-to-c-str (char-lst) (declare (xargs :guard (character-listp char-lst))) (let ((__function__ 'chars-to-c-str)) (declare (ignorable __function__)) (if (mbt (character-listp char-lst)) (if (not char-lst) '(0) (cons (char-code (car char-lst)) (chars-to-c-str (cdr char-lst)))) nil)))
Theorem:
(defthm byte-listp-of-chars-to-c-str (b* ((c-str (chars-to-c-str char-lst))) (byte-listp c-str)) :rule-classes :rewrite)