source: buchla-68k/libsm/index.c@ 6aa430b

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

Zero redundant declarations.

  • Property mode set to 100644
File size: 394 bytes
Line 
1/*
2 ============================================================================
3 index.c -- BSD style index function
4 Version 1 -- 1987-02-11 -- D.N. Lynx Crowe
5 ============================================================================
6*/
7
8#include "ram.h"
9
10int8_t *index(int8_t *str, int8_t c)
11{
12 while (*str) {
13
14 if (*str == c)
15 return(str);
16
17 ++str;
18 }
19
20 return((int8_t *)0);
21}
22
Note: See TracBrowser for help on using the repository browser.