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

strchange - replace beginning of string with beginning of another string

Author

       Lars Wirzenius (lars.wirzenius@helsinki.fi)

Publib                                        C Programmer's Manual                              STRCHANGE(3pub)

Description

strchange  will  replace  changelen  characters from the beginning of str with newlen characters from the
       beginning of new.  The rest of str will moved appropriately.

Name

       strchange - replace beginning of string with beginning of another string

Return Value

strchange will return its first argument.

See Also

publib(3), strcpy(3)

Synopsis

       #include <publib.h>
       char *strchange(char *str, size_t changelen,
                         const char *new, size_t newlen);

See Also