Embedded TCP/IP stack
4.1.0
|
Standard library API
Detailed Description
The standard library defines general purpose functions, including string converting, searching and other data manipulations.
Macros | |
#define | FNET_NULL (0) |
NULL pointer. . More... | |
#define | FNET_RAND_MAX (32767u) |
The maximum number returned by fnet_rand(). . More... | |
Typedefs | |
typedef unsigned long | fnet_size_t |
Unsigned integer type representing the size in bytes. More... | |
typedef long | fnet_ssize_t |
Signed integer type representing the size in bytes. More... | |
typedef unsigned int | fnet_flag_t |
Unsigned integer type representing the bit flag. More... | |
typedef unsigned int | fnet_index_t |
Unsigned integer type representing the index. More... | |
typedef char | fnet_char_t |
Type representing the charecter. More... | |
Enumerations |
Functions | |
void | fnet_memcpy (FNET_COMP_PACKED_VAR void *to_ptr, FNET_COMP_PACKED_VAR const void *from_ptr, fnet_size_t number_of_bytes) |
Copies bytes in memory. More... | |
void * | fnet_memcpy_func (void *to_buf_ptr, const void *from_func_ptr, fnet_size_t to_buf_size) |
Relocates function in memory. More... | |
void | fnet_memset (void *dest, fnet_uint8_t value, fnet_size_t n) |
Sets bytes in memory. More... | |
void | fnet_memset_zero (void *dest, fnet_size_t n) |
Sets bytes in memory to zeros. More... | |
fnet_int32_t | fnet_memcmp (const void *src1, const void *src2, fnet_size_t count) |
Compares memory areas. More... | |
fnet_size_t | fnet_strlen (const fnet_char_t *str) |
Calculates the length of a string. More... | |
void | fnet_strcat (fnet_char_t *dest, const fnet_char_t *src) |
Concatenates two strings. More... | |
void | fnet_strncat (fnet_char_t *dest, const fnet_char_t *src, fnet_size_t n) |
Concatenates a string with part of another. More... | |
void | fnet_strcpy (fnet_char_t *dest, const fnet_char_t *src) |
Copies a string. More... | |
void | fnet_strncpy (fnet_char_t *dest, const fnet_char_t *src, fnet_size_t n) |
Copies part of a string. More... | |
fnet_char_t * | fnet_strrchr (const fnet_char_t *str, fnet_char_t chr) |
Locates last occurrence of a character in a string. More... | |
fnet_char_t * | fnet_strchr (const fnet_char_t *str, fnet_char_t chr) |
Locates first occurrence of a character in a string. More... | |
fnet_char_t * | fnet_strstr (const fnet_char_t *str, const fnet_char_t *substr) |
Locates a substring. More... | |
fnet_int32_t | fnet_strcmp (const fnet_char_t *str1, const fnet_char_t *str2) |
Compares two strings. More... | |
fnet_int32_t | fnet_strncmp (const fnet_char_t *str1, const fnet_char_t *str2, fnet_size_t n) |
Compares part of two strings. More... | |
fnet_int32_t | fnet_strcasecmp (const fnet_char_t *str1, const fnet_char_t *str2) |
Compares two strings ignoring case. More... | |
fnet_int32_t | fnet_strcmp_splitter (const fnet_char_t *in_str, const fnet_char_t *name, fnet_char_t splitter) |
Compares two strings, with additional terminator. More... | |
fnet_uint32_t | fnet_strtoul (const fnet_char_t *str, fnet_char_t **ptr, fnet_size_t base) |
Converts string to unsigned long integer. More... | |
fnet_char_t * | fnet_strtok_r (fnet_char_t *str, const fnet_char_t *delimiter, fnet_char_t **last) |
Breaks a string into a sequence of tokens. More... | |
fnet_char_t | fnet_tolower (fnet_char_t to_lower) |
Converts letter to lower case. More... | |
fnet_uint32_t | fnet_rand (void) |
Generates a pseudo-random number. More... | |
void | fnet_srand (fnet_uint32_t seed) |
Initializes the pseudo-random number generator. More... | |
© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net