diff src/editfns.c @ 23218:90e5d916ebd9

Add a comment to emacs_memftime, explaining why it needs to loop.
author Paul Eggert <eggert@twinsun.com>
date Wed, 09 Sep 1998 21:33:50 +0000
parents 3bfc1e9b0377
children 2076beb17834
line wrap: on
line diff
--- a/src/editfns.c	Wed Sep 09 19:59:31 1998 +0000
+++ b/src/editfns.c	Wed Sep 09 21:33:50 1998 +0000
@@ -866,6 +866,11 @@
 {
   size_t total = 0;
 
+  /* Loop through all the null-terminated strings in the format
+     argument.  Normally there's just one null-terminated string, but
+     there can be arbitrarily many, concatenated together, if the
+     format contains '\0' bytes.  emacs_strftime stops at the first
+     '\0' byte so we must invoke it separately for each such string.  */
   for (;;)
     {
       size_t len;