Re:Efficient string copying and concatenation in C
by Someone on Thursday September 12, 2019 @12:53PM
(#20953665)
”This would be the result of trying to copy a string to a buffer that is too small.”
C doesn’t have the notion of “size of buffer” (yes, arrays have a size that can be queried by sizeof, but only at compile time). You would have to fix that, first.
C doesn’t have the notion of “size of buffer” (yes, arrays have a size that can be queried by sizeof, but only at compile time). You would have to fix that, first.