proxmark3/armsrc/string.h

50 lines
2 KiB
C
Raw Normal View History

//-----------------------------------------------------------------------------
2022-01-06 09:19:46 +08:00
// Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
//
2022-01-06 09:19:46 +08:00
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// See LICENSE.txt for the text of the license.
//-----------------------------------------------------------------------------
// Common string.h functions
//-----------------------------------------------------------------------------
2010-02-21 08:10:28 +08:00
#ifndef __STRING_H
#define __STRING_H
#include "common.h"
2010-02-21 08:10:28 +08:00
int strlen(const char *str);
2018-08-14 05:50:17 +08:00
void *memcpy(void *dest, const void *src, int len);
2020-06-08 09:15:10 +08:00
void *memmove(void *dest, const void *src, size_t len);
2021-04-17 04:30:53 +08:00
void *memset(void *dest, uint8_t c, int len);
2018-08-14 05:50:17 +08:00
int memcmp(const void *av, const void *bv, int len);
2019-03-10 07:00:59 +08:00
void memxor(uint8_t *dest, uint8_t *src, size_t len);
2010-02-21 08:10:28 +08:00
char *strncat(char *dest, const char *src, unsigned int n);
char *strcat(char *dest, const char *src);
void strreverse(char s[]);
void itoa(int n, char s[]);
char *strcpy(char *dst, const char *src);
2019-12-31 04:40:31 +08:00
char *strncpy(char *dst, const char *src, size_t n);
int strcmp(const char *s1, const char *s2);
2019-07-24 03:33:52 +08:00
char *strtok(char *s, const char *delim);
char *strchr(const char *s, int c);
size_t strspn(const char *s1, const char *s2);
char *strrchr(const char *s, int c);
size_t strcspn(const char *s1, const char *s2);
char *strpbrk(const char *s1, const char *s2);
2019-08-01 23:15:39 +08:00
int strncmp(const char *s1, const char *s2, size_t n);
2020-05-11 00:04:50 +08:00
unsigned long strtoul(const char *p, char **out_p, int base);
long strtol(const char *p, char **out_p, int base);
char c_tolower(int c);
2019-08-01 23:15:39 +08:00
char c_isprint(unsigned char c);
2019-03-12 07:12:26 +08:00
#endif /* __STRING_H */