mirror of
https://github.com/pvvx/RTL00_WEB.git
synced 2026-07-04 18:35:38 +00:00
first commit
This commit is contained in:
commit
fa343db334
154 changed files with 18186 additions and 0 deletions
33
project/inc/web/web_utils.h
Normal file
33
project/inc/web/web_utils.h
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/******************************************************************************
|
||||
* FileName: web_utils.h
|
||||
* Alternate SDK
|
||||
* Author: PV`
|
||||
* (c) PV` 2015
|
||||
*******************************************************************************/
|
||||
|
||||
#ifndef _INCLUDE_WEB_UTILS_H_
|
||||
#define _INCLUDE_WEB_UTILS_H_
|
||||
|
||||
int rom_atoi(const char *s);
|
||||
void copy_align4(void *ptrd, void *ptrs, uint32 len);
|
||||
uint32 hextoul(uint8 *s);
|
||||
uint32 ahextoul(uint8 *s);
|
||||
uint8 * cmpcpystr(uint8 *pbuf, uint8 *pstr, uint8 a, uint8 b, uint16 len);
|
||||
uint8 * web_strnstr(const uint8* buffer, const uint8* token, int n);
|
||||
bool base64decode(const uint8 *in, int len, uint8_t *out, int *outlen);
|
||||
size_t base64encode(char* target, size_t target_len, const char* source, size_t source_len);
|
||||
void strtomac(uint8 *s, uint8 *macaddr);
|
||||
//uint32 strtoip(uint8 *s); // ipaddr_addr();
|
||||
int urldecode(uint8 *d, uint8 *s, uint16 lend, uint16 lens);
|
||||
//int urlencode(uint8 *d, uint8 *s, uint16 lend, uint16 lens);
|
||||
int htmlcode(uint8 *d, uint8 *s, uint16 lend, uint16 lens);
|
||||
void print_hex_dump(uint8 *buf, uint32 len, uint8 k);
|
||||
// char* str_to_upper_case(char* text);
|
||||
uint32 str_array(uint8 *s, uint32 *buf, uint32 max_buf);
|
||||
uint32 str_array_w(uint8 *s, uint16 *buf, uint32 max_buf);
|
||||
uint32 str_array_b(uint8 *s, uint8 *buf, uint32 max_buf);
|
||||
char* word_to_lower_case(char* text);
|
||||
int rom_xstrcmp(char * pd, const char * ps);
|
||||
int rom_xstrcpy(char * pd, const char * ps);
|
||||
|
||||
#endif /* _INCLUDE_WEB_UTILS_H_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue