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

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