aboutsummaryrefslogtreecommitdiffstats
path: root/libevolution-utils/evolution-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'libevolution-utils/evolution-util.h')
-rw-r--r--libevolution-utils/evolution-util.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/libevolution-utils/evolution-util.h b/libevolution-utils/evolution-util.h
new file mode 100644
index 0000000000..5d1830bfae
--- /dev/null
+++ b/libevolution-utils/evolution-util.h
@@ -0,0 +1,42 @@
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) version 3.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with the program; if not, see <http://www.gnu.org/licenses/>
+ *
+ *
+ * Authors:
+ Srinivasa Ragavan <sragavan@gnome.org>
+ *
+ * Copyright (C) 2012 Intel Corporation (www.intel.com)
+ *
+ */
+
+#ifndef EVOLUTION_UTIL_H
+#define EVOLUTION_UTIL_H
+
+#include <sys/types.h>
+#include <glib.h>
+
+/* String to/from double conversion functions */
+gdouble e_flexible_strtod (const gchar *nptr,
+ gchar **endptr);
+
+/* 29 bytes should enough for all possible values that
+ * g_ascii_dtostr can produce with the %.17g format.
+ * Then add 10 for good measure */
+#define E_ASCII_DTOSTR_BUF_SIZE (DBL_DIG + 12 + 10)
+gchar * e_ascii_dtostr (gchar *buffer,
+ gint buf_len,
+ const gchar *format,
+ gdouble d);
+
+#endif /* EVOLUTION_UTIL_H */