Char * (pointer) function

后端 未结 4 703
悲&欢浪女
悲&欢浪女 2020-12-10 10:04

I need to pass in a char * in a function and have it set to a cstring value. I can properly set it as a string in the function, but it doesn\'t seem to print out correctly i

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-10 10:22

    I just re-read your question.

    You seem to have been hit by the pass by value, even if it is a pointer, problem. Also, is chunk null terminated?

提交回复
热议问题