Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

strmove - make a copy of a string, handling overlapping strings

Author

       Lars Wirzenius (lars.wirzenius@helsinki.fi)

Publib                                        C Programmer's Manual                                STRMOVE(3pub)

Description

strmove  copies  the string src to tgt, just like strcpy(3), but handles overlapping moves correctly (cf.
       memcpy(3) vs. memmove(3)).

Name

       strmove - make a copy of a string, handling overlapping strings

Return Value

strmove returns tgt.

See Also

publib(3), strcpy(3), memcpy(3), memmove(3)

Synopsis

       #include <publib.h>
       char *strmove(char *tgt, const char *src);

See Also