2010-02-21 00:12:52 +00:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Jonathan Westhues, Aug 2005
|
|
|
|
// Copyright (C) 2010 Hector Martin "marcan" <marcan@marcansoft.com>
|
|
|
|
//
|
|
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
|
|
// the license.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Common string.h functions
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2010-02-21 00:10:28 +00:00
|
|
|
#ifndef __STRING_H
|
|
|
|
#define __STRING_H
|
|
|
|
|
2017-01-21 11:06:48 +01:00
|
|
|
#include <common.h>
|
2015-01-06 21:20:41 +01:00
|
|
|
|
2010-02-21 00:10:28 +00:00
|
|
|
int strlen(const char *str);
|
2018-08-13 23:50:17 +02:00
|
|
|
void *memcpy(void *dest, const void *src, int len);
|
2010-02-21 00:10:28 +00:00
|
|
|
void *memset(void *dest, int c, int len);
|
2018-08-13 23:50:17 +02:00
|
|
|
int memcmp(const void *av, const void *bv, int len);
|
2019-03-10 00:00:59 +01:00
|
|
|
void memxor(uint8_t *dest, uint8_t *src, size_t len);
|
2010-02-21 00:10:28 +00:00
|
|
|
char *strncat(char *dest, const char *src, unsigned int n);
|
2010-10-19 14:25:17 +00:00
|
|
|
char *strcat(char *dest, const char *src);
|
|
|
|
void strreverse(char s[]);
|
|
|
|
void itoa(int n, char s[]);
|
2019-07-22 22:56:06 +02:00
|
|
|
char *strcpy(char *dst, const char *src);
|
2019-07-23 21:33:52 +02:00
|
|
|
char *strncpy(char *destination, const char *source, size_t num);
|
2019-07-22 22:56:06 +02:00
|
|
|
int strcmp(const char *s1, const char *s2);
|
2019-07-23 21:33:52 +02:00
|
|
|
char *strtok(char *s, const char *delim);
|
2010-10-19 14:25:17 +00:00
|
|
|
|
2019-03-12 00:12:26 +01:00
|
|
|
#endif /* __STRING_H */
|