![]() |
vitasdk
Documentation of the vitasdk
|
Exports for Kernel. More...
Typedefs | |
| typedef void(* | SceSysclibPrntCallback) (void *argp, int ch) |
Enumerations | |
| enum | SceCTypeFlag { SCE_CTYPE_NONE = 0 , SCE_CTYPE_UPPERCASE = 1 , SCE_CTYPE_LOWERCASE = 2 , SCE_CTYPE_NUMBER = 4 , SCE_CTYPE_CONTROL = 8 , SCE_CTYPE_SYMBOL = 0x10 , SCE_CTYPE_INVISIBLE = 0x20 , SCE_CTYPE_HEX_CASE = 0x40 } |
Functions | |
| void * | memset (void *dst, int ch, unsigned int len) |
| Set character to memory. | |
| void * | memcpy (void *dst, const void *src, unsigned int len) |
| Copy memory1 to memory2. | |
| void * | memmove (void *dst, const void *src, unsigned int len) |
| Move memory to memory. | |
| int | memcmp (const void *s1, const void *s2, unsigned int len) |
| Memory comparison. | |
| void * | memchr (const void *src, int ch, unsigned int n) |
| Search character from memory. | |
| int | strcmp (const char *s1, const char *s2) |
| Strings comparison. | |
| int | strncmp (const char *s1, const char *s2, unsigned int n) |
| Strings comparison with length limit. | |
| char * | strchr (const char *src, int ch) |
| Search character from string. | |
| char * | strstr (const char *s1, const char *s2) |
| Search string from string. | |
| unsigned int | strlen (const char *s) |
| Get string length. | |
| unsigned int | strnlen (const char *s, unsigned int n) |
| Get string length with length limit. | |
| char * | strncpy (char *dst, const char *src, unsigned int n) |
| Copy string with length limit. | |
| int | snprintf (char *dst, unsigned int max, const char *fmt,...) |
| int | vsnprintf (char *dst, unsigned int max, const char *fmt, va_list arg) |
| char | look_ctype_table (char ch) |
| int | tolower (int ch) |
| int | toupper (int ch) |
| int | timingsafe_memcmp (const void *s1, const void *s2, size_t n) |
| long | strtol (const char *str, char **endptr, int base) |
| long long | strtoll (const char *str, char **endptr, int base) |
| unsigned long | strtoul (const char *str, char **endptr, int base) |
| void * | __memcpy_chk (void *dst, const void *src, unsigned int len, unsigned int dst_len) |
| void * | __memset_chk (void *dst, int ch, unsigned int len, unsigned int dst_len) |
| void * | __memmove_chk (void *dst, const void *src, unsigned int len, unsigned int dst_len) |
| char * | __strncpy_chk (char *dst, const char *src, unsigned int n, unsigned int dst_len) |
| void | __prnt (SceSysclibPrntCallback callback, void *argp, const char *fmt, va_list list) |
| Internal functions used for snprintf, vsnprintf, kscDebugPrintf. | |
| __attribute__ ((__noreturn__)) void __stack_chk_fail(void) | |
Exports for Kernel.
Include the header file in your project:
Link the library to the executable:
| typedef void(* SceSysclibPrntCallback) (void *argp, int ch) |
| enum SceCTypeFlag |
| void * memset | ( | void * | dst, |
| int | ch, | ||
| unsigned int | len | ||
| ) |
Set character to memory.
| [in] | dst | - The output buffer pointer |
| [in] | ch | - The character |
| [in] | len | - The character set length |
| void * memcpy | ( | void * | dst, |
| const void * | src, | ||
| unsigned int | len | ||
| ) |
Copy memory1 to memory2.
| [in] | dst | - The output buffer pointer |
| [in] | src | - The input buffer pointer |
| [in] | len | - The copy length |
| void * memmove | ( | void * | dst, |
| const void * | src, | ||
| unsigned int | len | ||
| ) |
Move memory to memory.
| [in] | dst | - The buffer pointer |
| [in] | src | - The buffer pointer |
| [in] | len | - The move length |
| int memcmp | ( | const void * | s1, |
| const void * | s2, | ||
| unsigned int | len | ||
| ) |
Memory comparison.
| [in] | s1 | - The memory source1 |
| [in] | s2 | - The memory source2 |
| [in] | len | - The cmp length |
| void * memchr | ( | const void * | src, |
| int | ch, | ||
| unsigned int | n | ||
| ) |
Search character from memory.
| [in] | src | - The memory source |
| [in] | ch | - The character |
| [in] | len | - The search length |
| int strcmp | ( | const char * | s1, |
| const char * | s2 | ||
| ) |
Strings comparison.
| [in] | s1 | - The string source1 |
| [in] | s2 | - The string source2 |
| int strncmp | ( | const char * | s1, |
| const char * | s2, | ||
| unsigned int | n | ||
| ) |
Strings comparison with length limit.
| [in] | s1 | - The string source1 |
| [in] | s2 | - The string source2 |
| [in] | n | - The max length |
| char * strchr | ( | const char * | src, |
| int | ch | ||
| ) |
Search character from string.
| [in] | src | - The string source |
| [in] | ch | - The character |
| char * strstr | ( | const char * | s1, |
| const char * | s2 | ||
| ) |
Search string from string.
| [in] | s1 | - The string source1 |
| [in] | s2 | - The string source2 |
| unsigned int strlen | ( | const char * | s | ) |
Get string length.
| [in] | s | - The string pointer |
| unsigned int strnlen | ( | const char * | s, |
| unsigned int | n | ||
| ) |
Get string length with length limit.
| [in] | s | - The string pointer |
| [in] | n | - The max length |
| char * strncpy | ( | char * | dst, |
| const char * | src, | ||
| unsigned int | n | ||
| ) |
Copy string with length limit.
| [in] | dst | - The output buffer pointer |
| [in] | src | - The input buffer pointer |
| [in] | n | - The max copy length |
| int snprintf | ( | char * | dst, |
| unsigned int | max, | ||
| const char * | fmt, | ||
| ... | |||
| ) |
| int vsnprintf | ( | char * | dst, |
| unsigned int | max, | ||
| const char * | fmt, | ||
| va_list | arg | ||
| ) |
| char look_ctype_table | ( | char | ch | ) |
| int tolower | ( | int | ch | ) |
| int toupper | ( | int | ch | ) |
| int timingsafe_memcmp | ( | const void * | s1, |
| const void * | s2, | ||
| size_t | n | ||
| ) |
| long strtol | ( | const char * | str, |
| char ** | endptr, | ||
| int | base | ||
| ) |
| long long strtoll | ( | const char * | str, |
| char ** | endptr, | ||
| int | base | ||
| ) |
| unsigned long strtoul | ( | const char * | str, |
| char ** | endptr, | ||
| int | base | ||
| ) |
| void * __memcpy_chk | ( | void * | dst, |
| const void * | src, | ||
| unsigned int | len, | ||
| unsigned int | dst_len | ||
| ) |
| void * __memset_chk | ( | void * | dst, |
| int | ch, | ||
| unsigned int | len, | ||
| unsigned int | dst_len | ||
| ) |
| void * __memmove_chk | ( | void * | dst, |
| const void * | src, | ||
| unsigned int | len, | ||
| unsigned int | dst_len | ||
| ) |
| char * __strncpy_chk | ( | char * | dst, |
| const char * | src, | ||
| unsigned int | n, | ||
| unsigned int | dst_len | ||
| ) |
| void __prnt | ( | SceSysclibPrntCallback | callback, |
| void * | argp, | ||
| const char * | fmt, | ||
| va_list | list | ||
| ) |
Internal functions used for snprintf, vsnprintf, kscDebugPrintf.
| [in] | callback | - The callback to receive ch output by this function |
| [in] | argp | - The passed to callback |
| [in] | fmt | - The base format. example: "%-18s" |
| [in] | list | - The variable argument list |
| __attribute__ | ( | (__noreturn__) | ) |