SGDK How do I convert a u16 to a string?
Moderator: Stef
SGDK How do I convert a u16 to a string?
How do I convert a u16 to a string?
-
- Very interested
- Posts: 75
- Joined: Sun Jan 04, 2015 10:27 pm
- Location: Pennsylvania
- Contact:
Re: SGDK How do I convert a u16 to a string?
There are a few SGDK compatible conversion methods in its string.h file (see the doxygen document). Namely, casting your u16 to a u32 and using the uintToStr() function should sufficematteus wrote:How do I convert a u16 to a string?
SGDK homebrew dev and Unity3D Indie dev.
Sega does what Nintendont!
Sega does what Nintendont!
Re: SGDK How do I convert a u16 to a string?
Thanks this is spot on! Exactly what I need!MrTamk1s wrote:There are a few SGDK compatible conversion methods in its string.h file (see the doxygen document). Namely, casting your u16 to a u32 and using the uintToStr() function should sufficematteus wrote:How do I convert a u16 to a string?
and really easy to use :
sample
sample