| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 1.91

 

insertchar

#include "sflstr.h"
char *
insertchar (
    char *strbuf,
    char chrtoins,
    int pos)

Synopsis

Inserts a char into a string. Returns a pointer to head of the buffer. Submitted by Scott Beasley jscottb@infoave.com

Source Code - (sflstr.c)

{
   memmove ((strbuf + pos)+ 1,
   (strbuf + pos), strlen ((strbuf + pos))+ 1);
   *(strbuf + pos)= chrtoins;

   return strbuf;
}

| << | < | > | >> iMatix Copyright © 1996-98 iMatix