summaryrefslogtreecommitdiff
path: root/translate/grt/grt-cbinding.c
diff options
context:
space:
mode:
Diffstat (limited to 'translate/grt/grt-cbinding.c')
-rw-r--r--translate/grt/grt-cbinding.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/translate/grt/grt-cbinding.c b/translate/grt/grt-cbinding.c
index 1b75fcf..eb04a9c 100644
--- a/translate/grt/grt-cbinding.c
+++ b/translate/grt/grt-cbinding.c
@@ -37,6 +37,13 @@ __ghdl_get_stderr (void)
return stderr;
}
+int
+__ghdl_snprintf_g (char *buf, unsigned int len, double val)
+{
+ snprintf (buf, len, "%g", val);
+ return strlen (buf);
+}
+
void
__ghdl_fprintf_g (FILE *stream, double val)
{