Closed minexew closed 9 years ago
We don't need that. It's part of newlib which is part of devkitARM.
So newlib has been already ported to the CTR?
There was no change. It's the same as from what's supported for libnds.
Then I don't see how fopen
, for example, could work at all.
You can help finish this: https://github.com/smealum/ctrulib/blob/master/libctru/source/sdmc_dev.c
You just call sdmcInit() in your program then you can do like FILE *fp = fopen("sdmc:/file.txt", "r");
Alright, I'll look into that. I installed a bare-bones devkitPro (e.g. without libnds) and couldn't find std*.h anywhere, so I assumed it didn't exist at all. Thanks.
You don't "install" devkitPro. Unless you're talking about devkitARM. That's what has the standard headers and libraries.
...aaaaand you're right. I just wasn't looking in the right subdirectory (and apparently have messed up my include paths somehow). Neat.
Will patches implementing standard C libraries (stdlib, stdio, math etc) be accepted? Is there already another project for that?
Thanks.