P
Pieter Droogendijk
On 12 Sep 2003 06:44:30 -0700
Doesn't matter, I hope, or this post is off-topic.
The arguments to strcat may not overlap. The way you call it leads to undefined
behaviour. Anything could happen.
www.gnu.org. Download the glibc source package. You'll see why the strings may
not overlap.
using Borland Compiler.
Doesn't matter, I hope, or this post is off-topic.
x[32] = "this is a string"
strcat(x,x)
strcat(x,x)
will produce "this is a stringthis is a stringthis is a stringthis is
a stringt"
but should produce "this is a stringthis is a stringthis is a
stringthis is a string"
does anyone know why the additional character from the beginning of
the string is being appended at the end?
The arguments to strcat may not overlap. The way you call it leads to undefined
behaviour. Anything could happen.
in addition does anyone know the source for the strcat function? I am
curious as to how they did it.
www.gnu.org. Download the glibc source package. You'll see why the strings may
not overlap.