source: buchla-68k/libsm/strrchr.c@ 57425b6

Last change on this file since 57425b6 was b28a12e, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Zero redundant declarations.

  • Property mode set to 100644
File size: 495 bytes
RevLine 
[f40a309]1/*
2 =============================================================================
3 strrchr.c -- find last occurrence of a character in a string
4 Version 1 -- 1987-06-12
5
6 Return the ptr in sp at which the character c last
7 appears; NULL if not found.
8 =============================================================================
9*/
10
[b28a12e]11#include "ram.h"
[f40a309]12
[7258c6a]13int8_t *strrchr(int8_t *sp, int8_t c)
[f40a309]14{
[7258c6a]15 register int8_t *r;
[f40a309]16
17 r = NULL;
18
19 do {
20
21 if (*sp == c)
22 r = sp;
23
24 } while(*sp++);
25
26 return(r);
27}
Note: See TracBrowser for help on using the repository browser.