projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add deprecated (removed from posix) [efg]cvt() functions
[musl]
/
src
/
stdlib
/
gcvt.c
diff --git a/src/stdlib/gcvt.c
b/src/stdlib/gcvt.c
new file mode 100644
(file)
index 0000000..
6c075e2
--- /dev/null
+++ b/
src/stdlib/gcvt.c
@@ -0,0
+1,8
@@
+#include <stdlib.h>
+#include <stdio.h>
+
+char *gcvt(double x, int n, char *b)
+{
+ sprintf(b, "%.*g", n, x);
+ return b;
+}