[ create a new paste ] login | about

Link: http://codepad.org/bjSmdYaM    [ raw code | fork ]

C, pasted on Apr 20:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
     while ( (nread = read(in_fd , buf, BUFFERSIZE)) > 0 )
        {
            for (BufElement=0;BufElement < nread;BufElement++)
            {
                for (j=0; j < strlen(av[1]); j++)
                {
                    temp[x] = buf[BufElement];
                    if (buf[BufElement] == av[1][j]){
                        strncpy(temp+x,av[2],strlen(av[2])); 
			x = BufElement + 1;
		      	}
                                 
                }
                     
            }
        }


Create a new paste based on this one


Comments: