The world's most popular open source database
#include <my_global.h>Include dependency graph for my_user.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| C_MODE_START 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) |
| C_MODE_START 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.
References memcpy, p, and strrchr().
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 call graph for this function:

1.4.7

