Changeset 1c481ee in mainline for uspace/app/bdsh/util.c
- Timestamp:
- 2019-03-09T15:40:05Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 587867a
- Parents:
- c56a3eb
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2019-03-02 15:55:07)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-03-09 15:40:05)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/util.c
rc56a3eb r1c481ee 74 74 return 0; 75 75 } 76 77 /* 78 * Returns true if the string is a relative or an absolute path 79 */ 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.