| Last change
 on this file since f806726 was             b28a12e, checked in by Thomas Lopatic <thomas@…>, 8 years ago | 
        
          | 
Zero redundant declarations.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            426 bytes | 
      
      
| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | ============================================================================= | 
|---|
| 3 | strchr.c -- find a character in a string | 
|---|
| 4 |  | 
|---|
| 5 | Return the ptr in sp at which the character c appears; | 
|---|
| 6 | NULL if not found | 
|---|
| 7 | ============================================================================= | 
|---|
| 8 | */ | 
|---|
| 9 |  | 
|---|
| 10 | #include "ram.h" | 
|---|
| 11 |  | 
|---|
| 12 | int8_t *strchr(int8_t *sp, int8_t c) | 
|---|
| 13 | { | 
|---|
| 14 | do { | 
|---|
| 15 | if(*sp == c) | 
|---|
| 16 | return(sp); | 
|---|
| 17 | } while(*sp++); | 
|---|
| 18 |  | 
|---|
| 19 | return((int8_t *)NULL); | 
|---|
| 20 | } | 
|---|
| 21 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.