OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [libiberty/] [index.c] - Blame information for rev 249

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 21 khays
/* Stub implementation of (obsolete) index(). */
2
 
3
/*
4
 
5
@deftypefn Supplemental char* index (char *@var{s}, int @var{c})
6
 
7
Returns a pointer to the first occurrence of the character @var{c} in
8
the string @var{s}, or @code{NULL} if not found.  The use of @code{index} is
9
deprecated in new programs in favor of @code{strchr}.
10
 
11
@end deftypefn
12
 
13
*/
14
 
15
extern char * strchr(const char *, int);
16
 
17
char *
18
index (const char *s, int c)
19
{
20
  return strchr (s, c);
21
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.