#include <my_user.h>#include <m_string.h>Include dependency graph for my_user.c:

Go to the source code of this file.
Functions | |
| void | parse_user (const char *user_id_str, uint user_id_len, char *user_name_str, uint *user_name_len, char *host_name_str, uint *host_name_len) |
| void parse_user | ( | const char * | user_id_str, | |
| uint | user_id_len, | |||
| char * | user_name_str, | |||
| uint * | user_name_len, | |||
| char * | host_name_str, | |||
| uint * | host_name_len | |||
| ) |
Definition at line 35 of file my_user.c.
Referenced by db_load_routine(), dump_triggers_for_table(), get_view_structure(), and sp_head::set_definer().
00038 { 00039 char *p= strrchr(user_id_str, '@'); 00040 00041 if (!p) 00042 { 00043 *user_name_len= 0; 00044 *host_name_len= 0; 00045 } 00046 else 00047 { 00048 *user_name_len= p - user_id_str; 00049 *host_name_len= user_id_len - *user_name_len - 1; 00050 00051 memcpy(user_name_str, user_id_str, *user_name_len); 00052 memcpy(host_name_str, p + 1, *host_name_len); 00053 } 00054 00055 user_name_str[*user_name_len]= 0; 00056 host_name_str[*host_name_len]= 0; 00057 }
Here is the caller graph for this function:

1.4.7

