KOS sscanf didn't understand %f
-
- DC Developer
- Posts: 2285
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Fri Feb 21, 2003 7:37 am
- Location: Chicago, IL
- Has thanked: 0
- Been thanked: 1 time
- Contact:
KOS sscanf didn't understand %f
I'm about to try the other equivilents %g and %e but it makes me wonder if the types that printf and scanf understand in KOS is limited. Any word on this?
![Image](http://img159.imageshack.us/img159/5720/pub9.4651202415174E+27.png)
-
- Soul Sold for DCEmu
- Posts: 4865
- Joined: Fri Jul 11, 2003 9:56 pm
- Has thanked: 2 times
- Been thanked: 4 times
-
- DC Developer
- Posts: 2285
- Joined: Fri Feb 21, 2003 7:37 am
- Location: Chicago, IL
- Has thanked: 0
- Been thanked: 1 time
- Contact:
-
- Soul Sold for DCEmu
- Posts: 4865
- Joined: Fri Jul 11, 2003 9:56 pm
- Has thanked: 2 times
- Been thanked: 4 times
-
- DC Developer
- Posts: 968
- Joined: Tue Feb 11, 2003 4:12 pm
- Location: In a Dream
- Has thanked: 5 times
- Been thanked: 6 times
^^don't exaggerate. If the minute hand of your clock is not moving, you're better off not using the watch, unless you don't care about hourly differences in your time. Obvously scherzo wants something in particular from his sscanf and it is his place to demand it, as a user. If it doesn't exist, then he will be dissatisfied, whether or not it is a small thing.
Does your food taste different with an extra pinch of salt?
Does your food taste different with an extra pinch of salt?
behold the mind
inspired by Dreamcast
inspired by Dreamcast
- Ender
- DCEmu Super Poster
- Posts: 1314
- Joined: Mon Dec 10, 2001 4:01 pm
- Location: Canada, first igloo on your left.
- Has thanked: 0
- Been thanked: 0
- Contact:
To say that a troubleshooting/bugchecking tool should not be used at all because it does not support one particular type of variable is ridiculous (in my mind).nymus wrote:^^don't exaggerate. If the minute hand of your clock is not moving, you're better off not using the watch, unless you don't care about hourly differences in your time. Obvously scherzo wants something in particular from his sscanf and it is his place to demand it, as a user. If it doesn't exist, then he will be dissatisfied, whether or not it is a small thing.
Depends on the foodDoes your food taste different with an extra pinch of salt?
![Smile :)](./images/smilies/icon_e_smile.gif)
-
- Soul Sold for DCEmu
- Posts: 4865
- Joined: Fri Jul 11, 2003 9:56 pm
- Has thanked: 2 times
- Been thanked: 4 times
Bero Gave me this via email one time it's also limted
Kos has not supported it from kos1.1.9 and down. And the support for such things are not complete or even working. I have quiet a few work arounds best bet is to. Write your own string parser. Common to know most of libc is uncomplete and does not work like normal at all.
Want an example I can pm you one. But Sccanf and scanf support are limted Dan has not fix them nether have . I have A sccanf lib that uses GPL code from mini lib c which can not be included into kos.
Other then that You do have to write it one's self.
I can provide work arounds and help if you need it.
Code: Select all
int sscanf(const char *str, const char *fmt,...)
{
va_list ap;
int *pval;
if (strcmp(fmt,"%x")) {
exit(-1);
}
va_start(ap, fmt);
pval = va_arg(ap,int*);
va_end(ap);
*pval = strtol(str,0,16);
return 1;
}
Want an example I can pm you one. But Sccanf and scanf support are limted Dan has not fix them nether have . I have A sccanf lib that uses GPL code from mini lib c which can not be included into kos.
Other then that You do have to write it one's self.
I can provide work arounds and help if you need it.
Dreamcast forever!!!