-/* $Id: imports.c,v 1.27 2002/12/06 03:10:59 brianp Exp $ */
+/* $Id: imports.c,v 1.28 2003/01/14 03:02:13 brianp Exp $ */
/*
* Mesa 3-D graphics library
}
+char *
+_mesa_strdup( const char *s )
+{
+ int l = _mesa_strlen(s);
+ char *s2 = _mesa_malloc(l + 1);
+ if (s2)
+ _mesa_strcpy(s2, s);
+ return s2;
+}
+
+
int
_mesa_atoi(const char *s)
{
}
+float
+_mesa_strtof( const char *s, const char **end )
+{
+#if defined(XFree86LOADER) && defined(IN_MODULE)
+ return xf86strtof(s, end);
+#else
+ return strtod(s, end);
+#endif
+}
+
+
int
_mesa_sprintf( char *str, const char *fmt, ... )
{