+Wed Sep 26 11:00:31 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gstrfuncs.c (g_strnfill): Use memset; might be
+ faster if someone used this for a biiig string.
+ (Suggestion from Jakub Jelinek)
+
2001-09-26 Tor Lillqvist <tml@iki.fi>
* configure.in: (Win32:) Move the Win32 check closer to the start,
+Wed Sep 26 11:00:31 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gstrfuncs.c (g_strnfill): Use memset; might be
+ faster if someone used this for a biiig string.
+ (Suggestion from Jakub Jelinek)
+
2001-09-26 Tor Lillqvist <tml@iki.fi>
* configure.in: (Win32:) Move the Win32 check closer to the start,
+Wed Sep 26 11:00:31 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gstrfuncs.c (g_strnfill): Use memset; might be
+ faster if someone used this for a biiig string.
+ (Suggestion from Jakub Jelinek)
+
2001-09-26 Tor Lillqvist <tml@iki.fi>
* configure.in: (Win32:) Move the Win32 check closer to the start,
+Wed Sep 26 11:00:31 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gstrfuncs.c (g_strnfill): Use memset; might be
+ faster if someone used this for a biiig string.
+ (Suggestion from Jakub Jelinek)
+
2001-09-26 Tor Lillqvist <tml@iki.fi>
* configure.in: (Win32:) Move the Win32 check closer to the start,
+Wed Sep 26 11:00:31 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gstrfuncs.c (g_strnfill): Use memset; might be
+ faster if someone used this for a biiig string.
+ (Suggestion from Jakub Jelinek)
+
2001-09-26 Tor Lillqvist <tml@iki.fi>
* configure.in: (Win32:) Move the Win32 check closer to the start,
+Wed Sep 26 11:00:31 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gstrfuncs.c (g_strnfill): Use memset; might be
+ faster if someone used this for a biiig string.
+ (Suggestion from Jakub Jelinek)
+
2001-09-26 Tor Lillqvist <tml@iki.fi>
* configure.in: (Win32:) Move the Win32 check closer to the start,
+Wed Sep 26 11:00:31 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gstrfuncs.c (g_strnfill): Use memset; might be
+ faster if someone used this for a biiig string.
+ (Suggestion from Jakub Jelinek)
+
2001-09-26 Tor Lillqvist <tml@iki.fi>
* configure.in: (Win32:) Move the Win32 check closer to the start,
+Wed Sep 26 11:00:31 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gstrfuncs.c (g_strnfill): Use memset; might be
+ faster if someone used this for a biiig string.
+ (Suggestion from Jakub Jelinek)
+
2001-09-26 Tor Lillqvist <tml@iki.fi>
* configure.in: (Win32:) Move the Win32 check closer to the start,
g_strnfill (gsize length,
gchar fill_char)
{
- register gchar *str, *s, *end;
+ gchar *str;
str = g_new (gchar, length + 1);
- s = str;
- end = str + length;
- while (s < end)
- *(s++) = fill_char;
- *s = 0;
+ memset (str, (guchar)fill_char, length);
+ str[length] = '\0';
return str;
}