Skip to main content
heyo
Associate III
July 21, 2023
Solved

Unicode::UnicodeChar strncpy

  • July 21, 2023
  • 1 reply
  • 2085 views

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. 

This topic has been closed for replies.
Best answer by JTP1

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

1 reply

JTP1Best answer
Graduate II
July 21, 2023

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