logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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