1: /*	@(#)rindex.c	2.1	SCCS id keyword	*/
   2: /*
   3:  * Return the ptr in sp at which the character c last
   4:  * appears; NULL if not found
   5: */
   6: 
   7: #define NULL 0
   8: 
   9: char *
  10: rindex(sp, c)
  11: register char *sp, c;
  12: {
  13:     register char *r;
  14: 
  15:     r = NULL;
  16:     do {
  17:         if (*sp == c)
  18:             r = sp;
  19:     } while (*sp++);
  20:     return(r);
  21: }

Defined functions

Defined macros

NULL defined in line 7; used 1 times
  • in line 15
Last modified: 1981-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 591
Valid CSS Valid XHTML 1.0 Strict