Okay, originally I was trying to check for buffer overrun. I get the character array from someone, and my function would make sure it has enough buffer size to copy the data or do whatever that I...
Type: Posts; User: cactuar
Okay, originally I was trying to check for buffer overrun. I get the character array from someone, and my function would make sure it has enough buffer size to copy the data or do whatever that I...
I am trying to find a way for the function to figure out the size, so passing the size defeats the purpose. Is there any way to do this without passing the hardcoded size? Thanks.
Hi I am new. I hope this is not asked recently. Is it possible to pass the character array by itself instead of as a pointer? I want to get the size of array in the function the array was passed...