fix wide printf continuation after output or encoding errors
[musl] / crt / crt1.c
index e69de29..8fe8ab5 100644 (file)
@@ -0,0 +1,19 @@
+#include <features.h>
+#include "libc.h"
+
+#define START "_start"
+
+#include "crt_arch.h"
+
+int main();
+weak void _init();
+weak void _fini();
+int __libc_start_main(int (*)(), int, char **,
+       void (*)(), void(*)(), void(*)());
+
+void _start_c(long *p)
+{
+       int argc = p[0];
+       char **argv = (void *)(p+1);
+       __libc_start_main(main, argc, argv, _init, _fini, 0);
+}