sdk/dietlibc/main.c
Kirill Zhumarin 7712ccf391 rename back
2023-10-15 23:01:52 +03:00

36 lines
589 B
C

#include <swilib.h>
#include <stdio.h>
#include <fcntl.h>
#include <ctype.h>
#include <stdlib.h>
#include <assert.h>
//__BUILDIN_FUNCTIONS
/*
void test_string()
{
time_t t;
localtime(&t);
}
int _start()
{
int ferr = open("0:\\Misc\\elf3\\stderr.txt", O_CREAT | O_WRONLY | O_TRUNC);
int fout = open("0:\\Misc\\elf3\\stdout.txt", O_CREAT | O_WRONLY | O_TRUNC);
__setup_stderr_fd(ferr);
__setup_stdout_fd(fout);
test_string();
fflush(stdout);
fflush(stderr);
close(fout);
close(ferr);
exit(0);
}*/