+Tue Aug 18 18:23:09 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * glib.h
+ * gstrfuncs.c: added g_strndup
+
Tue Aug 18 04:40:17 1998 Tim Janik <timj@gtk.org>
* glib.h:
+Tue Aug 18 18:23:09 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * glib.h
+ * gstrfuncs.c: added g_strndup
+
Tue Aug 18 04:40:17 1998 Tim Janik <timj@gtk.org>
* glib.h:
+Tue Aug 18 18:23:09 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * glib.h
+ * gstrfuncs.c: added g_strndup
+
Tue Aug 18 04:40:17 1998 Tim Janik <timj@gtk.org>
* glib.h:
+Tue Aug 18 18:23:09 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * glib.h
+ * gstrfuncs.c: added g_strndup
+
Tue Aug 18 04:40:17 1998 Tim Janik <timj@gtk.org>
* glib.h:
+Tue Aug 18 18:23:09 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * glib.h
+ * gstrfuncs.c: added g_strndup
+
Tue Aug 18 04:40:17 1998 Tim Janik <timj@gtk.org>
* glib.h:
+Tue Aug 18 18:23:09 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * glib.h
+ * gstrfuncs.c: added g_strndup
+
Tue Aug 18 04:40:17 1998 Tim Janik <timj@gtk.org>
* glib.h:
+Tue Aug 18 18:23:09 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * glib.h
+ * gstrfuncs.c: added g_strndup
+
Tue Aug 18 04:40:17 1998 Tim Janik <timj@gtk.org>
* glib.h:
+Tue Aug 18 18:23:09 PDT 1998 Manish Singh <yosh@gimp.org>
+
+ * glib.h
+ * gstrfuncs.c: added g_strndup
+
Tue Aug 18 04:40:17 1998 Tim Janik <timj@gtk.org>
* glib.h:
const gchar *delimiters,
gchar new_delimiter);
gchar* g_strdup (const gchar *str);
+gchar* g_strndup (const gchar *str,
+ gulong n);
gchar* g_strconcat (const gchar *string1,
...); /* NULL terminated */
gdouble g_strtod (const gchar *nptr,
const gchar *delimiters,
gchar new_delimiter);
gchar* g_strdup (const gchar *str);
+gchar* g_strndup (const gchar *str,
+ gulong n);
gchar* g_strconcat (const gchar *string1,
...); /* NULL terminated */
gdouble g_strtod (const gchar *nptr,
return new_str;
}
+gchar*
+g_strndup (const gchar *str, gulong n)
+{
+ char *new_str;
+
+ new_str = NULL;
+ if (str)
+ {
+ new_str = g_new (char, n + 1);
+ strncpy (new_str, str, n);
+ new_str[n] = '\0';
+ }
+
+ return new_str;
+}
+
gchar*
g_strconcat (const gchar *string1, ...)
{
return new_str;
}
+gchar*
+g_strndup (const gchar *str, gulong n)
+{
+ char *new_str;
+
+ new_str = NULL;
+ if (str)
+ {
+ new_str = g_new (char, n + 1);
+ strncpy (new_str, str, n);
+ new_str[n] = '\0';
+ }
+
+ return new_str;
+}
+
gchar*
g_strconcat (const gchar *string1, ...)
{