|
RT-Thread RTOS
1.0.0
An open source embedded real-time operating system
|
Defines | |
| #define | rt_list_entry(node, type, member) ((type *)((char *)(node) - (unsigned long)(&((type *)0)->member))) |
Functions | |
| int * | _rt_errno (void) |
| void * | rt_memset (void *s, int c, rt_ubase_t count) |
| void * | rt_memcpy (void *dst, const void *src, rt_ubase_t count) |
| void * | rt_memmove (void *dest, const void *src, rt_ubase_t n) |
| rt_int32_t | rt_memcmp (const void *cs, const void *ct, rt_ubase_t count) |
| char * | rt_strstr (const char *s1, const char *s2) |
| rt_uint32_t | rt_strcasecmp (const char *a, const char *b) |
| char * | rt_strncpy (char *dst, const char *src, rt_ubase_t n) |
| rt_ubase_t | rt_strncmp (const char *cs, const char *ct, rt_ubase_t count) |
| rt_ubase_t | rt_strcmp (const char *cs, const char *ct) |
| rt_ubase_t | rt_strlen (const char *s) |
| char * | rt_strdup (const char *s) |
| void | rt_show_version (void) |
| rt_int32_t | rt_snprintf (char *buf, rt_size_t size, const char *fmt,...) |
| rt_int32_t | rt_vsprintf (char *buf, const char *format, va_list arg_ptr) |
| rt_int32_t | rt_sprintf (char *buf, const char *format,...) |
| rt_inline void | rt_list_init (rt_list_t *l) |
| rt_inline void | rt_list_insert_after (rt_list_t *l, rt_list_t *n) |
| rt_inline void | rt_list_insert_before (rt_list_t *l, rt_list_t *n) |
| rt_inline void | rt_list_remove (rt_list_t *n) |
| rt_inline int | rt_list_isempty (const rt_list_t *l) |
| #define rt_list_entry | ( | node, | |
| type, | |||
| member | |||
| ) | ((type *)((char *)(node) - (unsigned long)(&((type *)0)->member))) |
get the struct for this entry
| node | the entry point |
| type | the type of structure |
| member | the name of list in structure |
| int * _rt_errno | ( | void | ) |
This function returns errno.
| void * rt_memset | ( | void * | s, |
| int | c, | ||
| rt_ubase_t | count | ||
| ) |
This function will set the content of memory to specified value
| s | the address of source memory |
| c | the value shall be set in content |
| count | the copied length |
| void * rt_memcpy | ( | void * | dst, |
| const void * | src, | ||
| rt_ubase_t | count | ||
| ) |
This function will copy memory content from source address to destination address.
| dst | the address of destination memory |
| src | the address of source memory |
| count | the copied length |
| void * rt_memmove | ( | void * | dest, |
| const void * | src, | ||
| rt_ubase_t | n | ||
| ) |
This function will move memory content from source address to destination address.
| dest | the address of destination memory |
| src | the address of source memory |
| n | the copied length |
| rt_int32_t rt_memcmp | ( | const void * | cs, |
| const void * | ct, | ||
| rt_ubase_t | count | ||
| ) |
This function will compare two areas of memory
| cs | one area of memory |
| ct | znother area of memory |
| count | the size of the area |
| char * rt_strstr | ( | const char * | s1, |
| const char * | s2 | ||
| ) |
This function will return the first occurrence of a string.
| s1 | the source string |
| s2 | the find string |
| rt_uint32_t rt_strcasecmp | ( | const char * | a, |
| const char * | b | ||
| ) |
This function will compare two strings while ignoring differences in case
| a | the string to be compared |
| b | the string to be compared |
| char * rt_strncpy | ( | char * | dst, |
| const char * | src, | ||
| rt_ubase_t | n | ||
| ) |
This function will copy string no more than n bytes.
| dst | the string to copy |
| src | the string to be copied |
| n | the maximum copied length |
| rt_ubase_t rt_strncmp | ( | const char * | cs, |
| const char * | ct, | ||
| rt_ubase_t | count | ||
| ) |
This function will compare two strings with specified maximum length
| cs | the string to be compared |
| ct | the string to be compared |
| count | the maximum compare length |
| rt_ubase_t rt_strcmp | ( | const char * | cs, |
| const char * | ct | ||
| ) |
This function will compare two strings without specified length
| cs | the string to be compared |
| ct | the string to be compared |
| rt_ubase_t rt_strlen | ( | const char * | s | ) |
This function will return the length of a string, which terminate will null character.
| s | the string |
| char * rt_strdup | ( | const char * | s | ) |
This function will duplicate a string.
| s | the string to be duplicated |
| void rt_show_version | ( | void | ) |
This function will show the version of rt-thread rtos
| rt_int32_t rt_snprintf | ( | char * | buf, |
| rt_size_t | size, | ||
| const char * | fmt, | ||
| ... | |||
| ) |
This function will fill a formatted string to buffer
| buf | the buffer to save formatted string |
| size | the size of buffer |
| fmt | the format |
| rt_int32_t rt_vsprintf | ( | char * | buf, |
| const char * | format, | ||
| va_list | arg_ptr | ||
| ) |
This function will fill a formatted string to buffer
| buf | the buffer to save formatted string |
| arg_ptr | the arg_ptr |
| format | the format |
| rt_int32_t rt_sprintf | ( | char * | buf, |
| const char * | format, | ||
| ... | |||
| ) |
This function will fill a formatted string to buffer
| buf | the buffer to save formatted string |
| format | the format |
| rt_inline void rt_list_init | ( | rt_list_t * | l | ) |
initialize a list
| l | list to be initialized |
| rt_inline void rt_list_insert_after | ( | rt_list_t * | l, |
| rt_list_t * | n | ||
| ) |
insert a node after a list
| l | list to insert it |
| n | new node to be inserted |
| rt_inline void rt_list_insert_before | ( | rt_list_t * | l, |
| rt_list_t * | n | ||
| ) |
insert a node before a list
| n | new node to be inserted |
| l | list to insert it |
| rt_inline void rt_list_remove | ( | rt_list_t * | n | ) |
remove node from list.
| n | the node to remove from the list. |
| rt_inline int rt_list_isempty | ( | const rt_list_t * | l | ) |
tests whether a list is empty
| l | the list to test. |