| iMatix home page | << | < | > | >> |
![]() Version 1.91 |
#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
{ memmove ((strbuf + pos)+ strlen (chrstoins), (strbuf + pos), strlen ((strbuf + pos))+ 1); memcpy ((strbuf + pos), chrstoins, strlen (chrstoins)); return strbuf; }
| << | < | > | >> |
![]() |