Lines Matching refs:strncmp
94 * Using strncmp() to catch unique prefixes.
101 if (strncmp(cmd, "add", strlen(cmd)) != 0)
116 if (strncmp(cmd, "cd", strlen(cmd)) != 0)
137 if (strncmp(cmd, "delete", strlen(cmd)) != 0)
153 if (strncmp(cmd, "extract", strlen(cmd)) != 0)
167 if (strncmp(cmd, "help", strlen(cmd)) != 0)
195 if ((strncmp(cmd, "ls", strlen(cmd)) != 0) &&
196 (strncmp(cmd, "marked", strlen(cmd)) != 0))
211 if (strncmp(cmd, "pwd", strlen(cmd)) == 0) {
217 } else if (strncmp(cmd, "paginate", strlen(cmd)) == 0) {
253 if (strncmp(cmd, "quit", strlen(cmd)) != 0)
258 if (strncmp(cmd, "xit", strlen(cmd)) != 0)
266 if (strncmp(cmd, "verbose", strlen(cmd)) != 0)
282 if (strncmp(cmd, "setmodes", strlen(cmd)) == 0) {
284 } else if (strncmp(cmd, "setpager", strlen(cmd)) == 0) {
294 if (strncmp(cmd, "what", strlen(cmd)) != 0)
302 if (strncmp(cmd, "Debug", strlen(cmd)) != 0)
541 if (strcmp(rawname, ".") == 0 || strncmp(rawname, "./", 2) == 0)
588 if (np - cp == 2 && strncmp(cp, "..", 2) == 0) {
667 if (strncmp(name, basename, strlen(basename)) == 0)