cancel
Showing results for 
Search instead for 
Did you mean: 

Unicode::UnicodeChar strncpy

heyo
Senior

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?

heyo_0-1689922095407.png

 

Also if I copy Unicode::UnicodeChar to Unicode::UnicodeChar buffer it works good. 

1 ACCEPTED SOLUTION

Accepted Solutions
JTP1
Lead

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

View solution in original post

1 REPLY 1
JTP1
Lead

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