Changes in uspace/app/bdsh/util.c [1c481ee:7c3fb9b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/util.c
r1c481ee r7c3fb9b 74 74 return 0; 75 75 } 76 77 /*78 * Returns true if the string is a relative or an absolute path79 */80 bool is_path(const char *cmd)81 {82 83 bool ret = str_lcmp(cmd, "/", 1) == 0;84 ret = ret || str_lcmp(cmd, "./", 2) == 0;85 ret = ret || str_lcmp(cmd, "../", 3) == 0;86 87 return ret;88 }
Note:
See TracChangeset
for help on using the changeset viewer.