User Tools

Site Tools


c:memmem

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:memmem [2011/01/05 13:01] – created tkbletscc:memmem [2014/06/09 13:28] (current) tkbletsc
Line 8: Line 8:
 char* memmem(char* haystack, int hlen, char* needle, int nlen) { char* memmem(char* haystack, int hlen, char* needle, int nlen) {
  if (nlen > hlen) return 0;  if (nlen > hlen) return 0;
- int i,j;+ int i=0,j=0;
  switch(nlen) { // we have a few specialized compares for certain needle sizes  switch(nlen) { // we have a few specialized compares for certain needle sizes
  case 0: // no needle? just give the haystack  case 0: // no needle? just give the haystack
c/memmem.1294261309.txt.gz · Last modified: 2011/01/05 13:01 by tkbletsc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki