Subversion Repositories Kolibri OS

Rev

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

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