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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ucos-ii/] [2.91/] [include/] [string.h] - Blame information for rev 838

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

Line No. Rev Author Line
1 471 julius
/*
2
    string.h -- String manipulation
3
    Implements (some) of the standard string routines
4
    Copyright (C) 2002 Richard Herveille, rherveille@opencores.org
5
 
6
    This file is part of OpenRISC 1000 Reference Platform Monitor (ORPmon)
7
 
8
    This program is free software; you can redistribute it and/or modify
9
    it under the terms of the GNU General Public License as published by
10
    the Free Software Foundation; either version 2 of the License, or
11
    (at your option) any later version
12
 
13
    This program is distributed in the hope that it will be useful,
14
    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
    GNU General Public License for more details.
17
 
18
    You should have received a copy of the GNU General Public License
19
    along with this program; if not, write to the Free Software
20
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
*/
22
 
23
#ifndef __STRING_H
24
#define __STRING_H
25
#include <stddef.h>
26
 
27
/* Basic string functions */
28
extern size_t strlen(const char *s);
29
extern char *strcpy(char *dest, const char *src);
30
extern char *strncpy(char *dest, const char *src, size_t n);
31
extern char *strcat(char *dest, const char *src);
32
extern char *strncat(char *dest, const char *src, size_t n);
33
extern int strcmp(const char *s1, const char *s2);
34
extern int strncmp(const char *s1, const char *s2, size_t n);
35
extern char *strchr(const char *s, int c);
36
extern char *strrchr(const char *s, int c);
37
 
38
/* Basic mem functions */
39
extern void *memcpy(void *dest, const void *src, size_t n);
40
extern void *memmove(void *dest, void *src, size_t n);
41
extern int memcmp(const void *s1, const void *s2, size_t n);
42
extern void *memchr(const void *s, int c, size_t n);
43
extern void *memset(void *d, int c, size_t n);
44
 
45
#endif

powered by: WebSVN 2.1.0

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