|
| iMatix home page | << | < | > | >> |
SFLVersion 2.11 |
#include "sflstr.h"
char *
insertstring (
char *strbuf,
char *chrstoins,
int pos)
Inserts a string into another string. Returns a pointer to head of the buffer. Submitted by Scott Beasley jscottb@infoave.com
{
ASSERT (strbuf);
ASSERT (chrstoins);
memmove (((strbuf + pos) + strlen (chrstoins)),
(strbuf + pos), (strlen ((strbuf + pos)) + 1));
memcpy ((strbuf + pos), chrstoins, strlen (chrstoins));
return strbuf;
}
| | << | < | > | >> |
|