aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
authorPaul Eggert1998-09-09 21:33:50 +0000
committerPaul Eggert1998-09-09 21:33:50 +0000
commitbe09e6e6bf034742e081b3d021a6df8fbb6151cd (patch)
tree978fe96ce3ce64adffa34cdcc4aef0740b92341f /src/editfns.c
parent9181be696161014a79ca7cb75e57be59aefe32a7 (diff)
downloademacs-be09e6e6bf034742e081b3d021a6df8fbb6151cd.tar.gz
emacs-be09e6e6bf034742e081b3d021a6df8fbb6151cd.zip
Add a comment to emacs_memftime, explaining why it needs to loop.
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 619280d73d5..cf88d69d23b 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -866,6 +866,11 @@ emacs_memftime (s, maxsize, format, format_len, tp)
866{ 866{
867 size_t total = 0; 867 size_t total = 0;
868 868
869 /* Loop through all the null-terminated strings in the format
870 argument. Normally there's just one null-terminated string, but
871 there can be arbitrarily many, concatenated together, if the
872 format contains '\0' bytes. emacs_strftime stops at the first
873 '\0' byte so we must invoke it separately for each such string. */
869 for (;;) 874 for (;;)
870 { 875 {
871 size_t len; 876 size_t len;