Changeset 43e02a6 in mainline for uspace/app/bdsh/util.c


Ignore:
Timestamp:
2008-08-29T11:07:22Z (16 years ago)
Author:
Tim Post <echo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0c4f46a
Parents:
3771a6e
Message:

Just make cli_count_args() a function

File:
1 edited

Legend:

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

    r3771a6e r43e02a6  
    238238        return (cli_strtok_r(s, delim, &last));
    239239}
     240
     241/* Count and return the # of elements in an array */
     242unsigned int cli_count_args(char **args)
     243{
     244        unsigned int i;
     245
     246        for (i=0; args[i] != NULL; i++);
     247        return i;
     248}
     249
Note: See TracChangeset for help on using the changeset viewer.