Convert a string to a list of bytes.
(string->bytes str) → bl
Function:
(defun string->bytes (str) (declare (xargs :guard (stringp str))) (let ((__function__ 'string->bytes)) (declare (ignorable __function__)) (charlist->bytes (coerce str 'list))))
Theorem:
(defthm byte-listp-of-string->bytes (implies (and (stringp str)) (b* ((bl (string->bytes str))) (byte-listp bl))) :rule-classes :rewrite)