Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

how to use STL's string as a function argument, that has to be a C string buffer that'll contain values returned from the function?

$
0
0

normally I would dynamically allocate an array of certain size and pass it to the function, the function would fill it with values and that's it

how can I use STL's string directly in that function, without allocating C string first and copying it to the string later?

thanks



Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>