comparison 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
comparison
equal deleted inserted replaced
23217:a9ebac06b080 23218:90e5d916ebd9
864 size_t format_len; 864 size_t format_len;
865 const struct tm *tp; 865 const struct tm *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;
872 size_t result; 877 size_t result;
873 878