Lines Matching defs:str
143 int admin_parsecmd(char *str)
147 str[strlen(str) - 2] = '\0'; /* Remove \r\n */
148 p = pp = str; /* Remove garbage in the string */
156 if (!strncasecmp(str, admin_commands[i].name, strlen(admin_commands[i].name))) {
157 cutto(str, strlen(admin_commands[i].name));
158 p = str;
161 memmove(str, p, strlen(str) - (p - str) + 1);
162 admin_commands[i].function(str);
166 control_printf(SL_FAILURE, "500 Unknown command: \"%s\"", str);