about summary refs log tree commit diff stats
path: root/gemtext_encode.3
diff options
context:
space:
mode:
authorAli Fardan <raiz@stellarbound.space>2020-10-23 18:06:05 +0300
committerAli Fardan <raiz@stellarbound.space>2020-10-23 18:06:05 +0300
commit41cee4661d176e8ff765afad0e920992aaa70853 (patch)
treed9c43405d4370de82284aa83689f306562b18e6c /gemtext_encode.3
parentf0c842e82a7304f75feee03bd22b9b822747deff (diff)
downloadlibgemtext-41cee4661d176e8ff765afad0e920992aaa70853.tar.gz
allow passing NULL pointer to gemtext_encode() len
Diffstat (limited to 'gemtext_encode.3')
-rw-r--r--gemtext_encode.34
1 files changed, 3 insertions, 1 deletions
diff --git a/gemtext_encode.3 b/gemtext_encode.3
index 6a0c2bd..a72b56e 100644
--- a/gemtext_encode.3
+++ b/gemtext_encode.3
@@ -55,7 +55,9 @@ to the encoded text and sets
 .Em int
 pointed to by
 .Em lenptr
-to the size of the encoded text excluding terminating NULL byte.
+to the size of the encoded text excluding terminating NULL byte, this can be discarded by setting
+.Em lenptr
+to NULL.
 .Pp
 Upon success, pointer set at
 .Em *textptr