| Last change
 on this file since 0c834c5 was             0580615, checked in by Thomas Lopatic <thomas@…>, 8 years ago | 
        
          | 
Point of no return.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            410 bytes | 
      
      
| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | ============================================================================ | 
|---|
| 3 | rindex.c -- BSD style rindex function | 
|---|
| 4 | Version 2 -- 1987-06-12 -- D.N. Lynx Crowe | 
|---|
| 5 | ============================================================================ | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | char *rindex(char *str, char c) | 
|---|
| 9 | { | 
|---|
| 10 | register char *cp; | 
|---|
| 11 |  | 
|---|
| 12 | for (cp = str ;*cp++ ; ) | 
|---|
| 13 | ; | 
|---|
| 14 |  | 
|---|
| 15 | while (cp > str) | 
|---|
| 16 | if (*--cp == c) | 
|---|
| 17 | return(cp); | 
|---|
| 18 |  | 
|---|
| 19 | return((char *)0); | 
|---|
| 20 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.