int size = 276447234; // or bigger
char *a=newchar[size];
SendCommand(line, a, size); // fct that writes a given output in "a"
there is a size limit of 276447233 attributed to my int size.
(e.g. When I enter int size = 276447239 and display the size after have used my pointer the way I wanted, I notice its size has been decreased to this 276447233...)
What does UB mean?
I'm working on a c++ pipe program communicating with a thermodynamical software, so it won't compile if you don't have the software, but I'll see if I can get an easy example out of this.
Thanks though