Unicode::UnicodeChar strncpy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-20 11:48 PM
Hello.
I'm trying to pass wildcard buffer to model.hpp and convert Unicode::UnicodeChar to char and I'm using strncpy. But it copies only one character.. Where is problem here?
Also if I copy Unicode::UnicodeChar to Unicode::UnicodeChar buffer it works good.
Solved! Go to Solution.
- Labels:
-
TouchGFX
-
TouchGFX Designer
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-21 1:40 AM
Hello
maybe you should use toUTF8-function since your source is unicode (i guess) and destination is char or just copy it in for loop.
Strncpy works unicode to unicode or char to unicode.
Br J.T
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-21 1:40 AM
Hello
maybe you should use toUTF8-function since your source is unicode (i guess) and destination is char or just copy it in for loop.
Strncpy works unicode to unicode or char to unicode.
Br J.T
