| Function report | 
| Source Code: security\tomoyo\realpath.c | Create Date:2022-07-28 19:45:54 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:moyo_encode2 - Encode binary string to ascii string.*@str: String in binary format.*@str_len: Size of @str in byte.* Returns pointer to @str in ascii format on success, NULL otherwise.* This function uses kzalloc(), so caller must kfree() if this function
Proto:char *tomoyo_encode2(const char *str, int str_len)
Type:char
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| const char * | str | |
| int | str_len | 
| 25 | len = 0 | 
| 30 | If Not p Then Return NULL | 
| 42 | len++ | 
| 44 | cp = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). | 
| 45 | If Not cp Then Return NULL | 
| 52 | If c == '\\' Then | 
| 57 | Else | 
| 64 | Return cp0 | 
| Name | Describe | 
|---|---|
| tomoyo_encode | moyo_encode - Encode binary string to ascii string.*@str: String in binary format.* Returns pointer to @str in ascii format on success, NULL otherwise.* This function uses kzalloc(), so caller must kfree() if this function* didn't return NULL. | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |