MOS Source Code
|
String manipulation functions, similar to the ones in the C standard library. More...
Functions | |
MOSAPI size_t | strlen (const char *str) __pure |
MOSAPI size_t | strnlen (const char *, size_t) |
MOSAPI s32 | strcmp (const char *str1, const char *str2) |
MOSAPI s32 | strncmp (const char *str1, const char *str2, size_t n) |
MOSAPI s32 | strncasecmp (const char *str1, const char *str2, size_t n) |
MOSAPI void * | memcpy (void *__restrict dest, const void *__restrict src, size_t n) |
MOSAPI void * | memmove (void *dest, const void *src, size_t n) |
MOSAPI void * | memset (void *s, int c, size_t n) |
MOSAPI int | memcmp (const void *s1, const void *s2, size_t n) |
MOSAPI void | memzero (void *s, size_t n) |
MOSAPI void * | memchr (const void *m, int c, size_t n) |
MOSAPI char * | strcpy (char *__restrict dest, const char *__restrict src) |
MOSAPI char * | strcat (char *__restrict dest, const char *__restrict src) |
MOSAPI char * | strncpy (char *__restrict dest, const char *__restrict src, size_t n) |
MOSAPI char * | strdup (const char *src) |
MOSAPI char * | strndup (const char *src, size_t n) |
MOSAPI char * | strchr (const char *s, int c) |
MOSAPI char * | strrchr (const char *s, int c) |
MOSAPI size_t | strspn (const char *s, const char *accept) |
MOSAPI char * | strpbrk (const char *s, const char *accept) |
MOSAPI char * | strtok (char *str, const char *delim) |
MOSAPI char * | strtok_r (char *str, const char *delim, char **saveptr) |
String manipulation functions, similar to the ones in the C standard library.
Definition at line 8 of file mos_string.c.
Definition at line 16 of file mos_string.c.
Definition at line 24 of file mos_string.c.
Referenced by check_alltypes(), cmdline_get_option(), cmdline_is_falsy(), cmdline_is_truthy(), console_get(), cpio_i_iterate_dir(), cpio_mount(), cpio_read_metadata(), dentry_get_child(), dentry_lookup_parent(), dentry_resolve_handle_last_segment(), do_roundtrip(), find_entry(), hashmap_compare_string(), ipc_connect_to_server(), ipc_get_server(), ipc_server_create(), ipc_sysfs_lookup_ipc(), main(), main(), main(), read_repeated_string(), read_repeated_submsg(), read_string(), read_submsg(), sysfs_fsop_mount(), test_foreach_stop_at_quux(), test_oneof_1(), test_oneof_2(), test_OneofMessage(), tmpfs_fsop_mount(), vfs_find_filesystem(), and vfs_mount().
Definition at line 32 of file mos_string.c.
Referenced by acpi_find_rsdp(), console_get_by_prefix(), cpio_i_iterate_dir(), cpio_read_metadata(), dentry_lookup_parent(), dentry_resolve_handle_last_segment(), do_handle_sdt_header(), do_iterate_sdts(), elf_verify_header(), MOS_TEST_CASE(), mos_test_engine_should_skip(), and tree_find_child_by_name().
Definition at line 64 of file mos_string.c.
Definition at line 111 of file mos_string.c.
Referenced by callback(), MOS_TEST_CASE(), MOS_TEST_CASE(), MOS_TEST_CASE(), rand_protobuf_noise(), and string_unquote().
Definition at line 142 of file mos_string.c.
Referenced by check_alltypes(), main(), read_double(), read_repeated_double(), test_TestMessage(), validate_pointer(), and validate_static().
Definition at line 173 of file mos_string.c.
MOSAPI char * strcpy | ( | char *__restrict | dest, |
const char *__restrict | src ) |
Definition at line 184 of file mos_string.c.
Referenced by dentry_lookup_parent(), dentry_path(), do_encode(), encode_MyMessage2(), get_ansi_color(), listdir(), main(), and main().
MOSAPI char * strcat | ( | char *__restrict | dest, |
const char *__restrict | src ) |
Definition at line 192 of file mos_string.c.
Referenced by dentry_lookup_parent(), and dentry_path().
Definition at line 202 of file mos_string.c.
Referenced by DEFINE_SYSCALL(), encode_dictionary(), ListFilesResponse_callback(), main(), main(), and main().
MOSAPI char * strdup | ( | const char * | src | ) |
Referenced by cmdline_dynamic_array_insert(), DEFINE_SYSCALL(), dentry_create(), dentry_lookup_parent(), dentry_path(), elf_fill_process(), ipc_connect_to_server(), ipc_server_create(), mos_start_kernel(), process_allocate(), process_do_execveat(), process_do_fork(), setup_init_args(), setup_init_path(), thread_new(), tmpfs_i_symlink(), and userfs_manager_register().
Referenced by dentry_add_dir(), and register_sysfs_acpi_node().
Definition at line 236 of file mos_string.c.
Referenced by cpio_i_iterate_dir(), encode_dictionary(), mos_cmdline_init(), strpbrk(), and strspn().
Definition at line 247 of file mos_string.c.
Definition at line 258 of file mos_string.c.
Referenced by strtok(), and strtok_r().
MOSAPI char * strpbrk | ( | const char * | s, |
const char * | accept ) |
Definition at line 270 of file mos_string.c.
Referenced by strtok(), and strtok_r().
MOSAPI char * strtok | ( | char * | str, |
const char * | delim ) |
Definition at line 281 of file mos_string.c.
Referenced by mos_test_engine_setup_skip_prefix_list().
MOSAPI char * strtok_r | ( | char * | str, |
const char * | delim, | ||
char ** | saveptr ) |
Definition at line 303 of file mos_string.c.
Referenced by dentry_lookup_parent().