From: Mark Wooding Date: Sun, 5 May 2024 01:43:30 +0000 (+0100) Subject: zone.lisp (split-txt-data): Add documentation. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/zone/commitdiff_plain/b5746aa40ba5c7a756538ec06a884df8d3a4b531?ds=sidebyside zone.lisp (split-txt-data): Add documentation. --- diff --git a/zone.lisp b/zone.lisp index f68af5d..f50c6d7 100644 --- a/zone.lisp +++ b/zone.lisp @@ -869,6 +869,11 @@ (defmethod zone-record-rrdata ((type (eql :cname)) zr) 5) (defun split-txt-data (data) + "Split the string DATA into pieces small enough to fit in a TXT record. + + Return a list of strings L such that (a) (apply #'concatenate 'string L) + is equal to the original string DATA, and (b) (every (lambda (s) (<= + (length s) 255)) L) is true." (collecting () (let ((i 0) (n (length data))) (loop