Watt-32 tcp/ip  2.2 dev-rel.10
strings.h
Go to the documentation of this file.
1 
3 #ifndef _w32_STRINGS_H
4 #define _w32_STRINGS_H
5 
6 extern char *_strlcpy (char *dst, const char *src, size_t len);
7 extern char *strreplace (int ch1, int ch2, char *str);
8 extern size_t strntrimcpy (char *dst, const char *src, size_t len);
9 extern char *strrtrim (char *src);
10 extern char *strltrim (const char *src);
11 extern BYTE atox (const char *src);
12 
13 #endif
14 
char * strreplace(int ch1, int ch2, char *str)
Replace 'ch1' to 'ch2' in string 'str'.
Definition: strings.c:207
size_t strntrimcpy(char *dst, const char *src, size_t len)
Copy a string, stripping leading and trailing blanks (space/tab).
Definition: strings.c:277
char * _strlcpy(char *dst, const char *src, size_t len)
Similar to strncpy(), but always returns 'dst' with 0-termination.
Definition: strings.c:226
char * strltrim(const char *src)
Return pointer to first non-blank (space/tab) in a string.
Definition: strings.c:243
BYTE atox(const char *src)
Convert hexstring "0x??" to hex.
Definition: strings.c:194
char * strrtrim(char *src)
Trim trailing blanks (space/tab) from a string.
Definition: strings.c:255