Logo Search packages:      
Sourcecode: ucspi-tcp version File versions  Download package

str_chr.c

#include "str.h"

unsigned int str_chr(register char *s,int c)
{
  register char ch;
  register char *t;

  ch = c;
  t = s;
  for (;;) {
    if (!*t) break; if (*t == ch) break; ++t;
    if (!*t) break; if (*t == ch) break; ++t;
    if (!*t) break; if (*t == ch) break; ++t;
    if (!*t) break; if (*t == ch) break; ++t;
  }
  return t - s;
}

Generated by  Doxygen 1.6.0   Back to index