- (let ((func (sb!impl::get-external-format-function external-format 9)))
- (unless func
- (error "Undefined external-format ~A.~%" external-format))
- (funcall (symbol-function func) sap element-type))))
+ (let ((external-format (sb!impl::get-external-format-or-lose external-format)))
+ (funcall (sb!impl::ef-read-c-string-fun external-format) sap element-type))))