1: /*
   2:  * Copyright (c) 1985 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  */
   6: 
   7: /*
   8:  * Sys5 compat routine
   9:  */
  10: 
  11: #if defined(LIBC_SCCS) && !defined(lint)
  12: static char sccsid[] = "@(#)memchr.c	5.2 (Berkeley) 86/03/09";
  13: #endif
  14: 
  15: char *
  16: memchr(s, c, n)
  17:     register char *s;
  18:     register c, n;
  19: {
  20:     while (--n >= 0)
  21:         if (*s++ == c)
  22:             return (--s);
  23:     return (0);
  24: }

Defined functions

memchr defined in line 15; used 2 times

Defined variables

sccsid defined in line 12; never used
Last modified: 1986-03-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: ?E00
Valid CSS Valid XHTML 1.0 Strict