Changes in uspace/app/bdsh/util.c [1c481ee:7c3fb9b] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/util.c

    r1c481ee r7c3fb9b  
    7474        return 0;
    7575}
    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.