Hi everyone,
I know itoa is not ansi C, but I´m wondering if it is any version of this funcion in the psp sdk. I could write mine, but I´m just curious.
Edit: I have noticed a _itoa exists in the libc/stdlib.h folder but if I include this, I get symbol collisions with the stdlib.h that it includes by default :/.
Thanks in advance,
HexDump.
itoa missing?
-
- Posts: 31
- Joined: Wed May 16, 2007 11:08 am
I can´t do the trick :(
I need to do:
and it should be written in LBS Hex.
I´m trying with:
but doesn´t work.
One example: if I had int size = 16;
I need to write "0x10 0x00 0x00 0x00"
Can anybody help me? I´m new at programming psp.
Thanks ;)
I need to do:
Code: Select all
int size = XXXXX; (any value)
sceIoWrite(fp,itoa(size),4);
I´m trying with:
Code: Select all
char bufferaux[5];
sprintf(bufferaux,"%d",size);
sceIoWrite(fp,bufferaux,4)
One example: if I had int size = 16;
I need to write "0x10 0x00 0x00 0x00"
Can anybody help me? I´m new at programming psp.
Thanks ;)
-
- Posts: 31
- Joined: Wed May 16, 2007 11:08 am