Home
last modified time | relevance | path

Searched refs:char (Results 1 – 11 of 11) sorted by relevance

/DragonOS-0.1.5/docs/userland/libc/apis/api-list/
Dstring.md9 ``size_t strlen(const char *s)`` : 返回字符串长度
11 ``int strcmp(const char *a,const char *b)`` 比较字符串的字典序
13 ``char* strncpy(char *dst,const char *src,size_t count)``
23 ``char* strcpy(char *dst,const char *src)`` : 复制整个字符串
25 ``char* strcat(char *dest,const char* src)`` : 拼接两个字符串
Dstdio.md8 ``int64_t put_string(char *str, uint64_t front_color, uint64_t bg_color)``
12 ``int printf(const char *fmt, ...)``
16 ``int sprintf(char *buf,const char *fmt,...)```
20 ``int vsprintf(char *buf,const char *fmt,va_list args)``
Ddirent.md27 ``unsigned char d_type`` : 目标的类型(有可能是文件,文件夹,磁盘)
29 ``char d_name[]`` : 目标的名字
33 ``DIR opendir(const char *path)``
Dunistd.md47 ``int64_t chdir(char *dest_path)``
51 ``int execv(const char* path,char * const argv[])`` : 执行文件
Dstdlib.md18 ``int atoi(const char *str)`` 字符串转数字
Dfcntl.md8 ``int open(const char * path,int options, ...)``
/DragonOS-0.1.5/kernel/src/filesystem/fat/
Dutils.rs1 use core::char::REPLACEMENT_CHARACTER;
8 pub fn decode_u8_ascii(value: u8) -> char { in decode_u8_ascii() argument
10 return value as char; in decode_u8_ascii()
Dentry.rs1893 let cp: char = match c { in copy_part()
1934 let num_suffix: Option<u32> = if name[prefix_len] as char == '~' {
1935 (name[prefix_len + 1] as char).to_digit(10)
1954 let num_suffix: Option<u32> = if name[prefix_len + 4] as char == '~' {
1955 (name[prefix_len + 1] as char).to_digit(10)
2031 buf[prefix_len + 1] = char::from_digit(num, 10).unwrap() as u8;
2039 let c1 = char::from_digit((x as u32 >> 12) & 0xf, 16)
2042 let c2 = char::from_digit((x as u32 >> 8) & 0xf, 16)
2045 let c3 = char::from_digit((x as u32 >> 4) & 0xf, 16)
2048 let c4 = char::from_digit((x as u32 >> 0) & 0xf, 16)
/DragonOS-0.1.5/docs/kernel/core_api/
Dkernel_api.md447 #### `int strlen(const char *s)`
459 #### `long strnlen(const char *src, unsigned long maxlen)`
475 #### `long strnlen_user(const char *src, unsigned long maxlen)`
493 #### `char *strncpy(char *dst, const char *src, long count)`
513 #### `char *strcpy(char *dst, const char *src)`
529 #### `long strncpy_from_user(char *dst, const char *src, unsigned long size)`
551 #### `int strcmp(char *FirstPart, char *SecondPart)`
575 #### `printk(const char* fmt, ...)`
591 #### `printk_color(unsigned int FRcolor, unsigned int BKcolor, const char* fmt, ...)`
615 #### `int vsprintf(char *buf, const char *fmt, va_list args)`
[all …]
/DragonOS-0.1.5/kernel/src/driver/uart/
Duart.rs2 use core::{char, intrinsics::offset, str};
174 fn uart_read_byte(uart_port: &UartPort) -> char { in uart_read_byte() argument
177 unsafe { io_in8(port) as char } in uart_read_byte()
/DragonOS-0.1.5/docs/community/code_contribution/
Dc-coding-style.md125 char *a;
126 void *func(char* s, int **p);