lionel_om wrote:
But with using "*mem\s = *str\s", PB made the copy and create a new buffer . Or I'm wrong...?
No, you're quite right.
PB's way of handling the '@' operator for strings can be a bit confusing at times. As you can se from the different answers you're getting
So my procedure is quite good, excepted the null pointer case ?!
lionel_om wrote:
So my procedure is quite good, excepted the null pointer case ?!
So the problem came from another place ?!
Yes i think the procedure is just fine, so there might be another problem somewhere in the code. One thing i wonder though, how is the result from the string constructor procedure handled?
lionel_om wrote:
So my procedure is quite good, excepted the null pointer case ?!
So the problem came from another place ?!
Yes i think the procedure is just fine, so there might be another problem somewhere in the code. One thing i wonder though, how is the result from the string constructor procedure handled?
The return is used has a pointer of a STRING structure :