Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. void* memchr(const void* buf,int c,int count)
  2. {
  3.   int i;
  4.   for (i=0;i<count;i++)
  5.     if (*(char*)buf==c)
  6.       return (void*)buf;
  7.     else
  8.       buf++;
  9.   return (void*)0;
  10. }
  11.