Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sbi/src/os/posix.c

    r38aaacc2 r074444f  
    4747 * The string functions are in fact standard C, but would not work under
    4848 * HelenOS.
    49  *
    50  * XXX String functions used here only work with 8-bit text encoding.
    5149 */
    5250
    53 /** Concatenate two strings.
    54  *
    55  * @param a     First string
    56  * @param b     Second string
    57  * @return      New string, concatenation of @a a and @a b.
    58  */
     51/** Concatenate two strings. */
    5952char *os_str_acat(const char *a, const char *b)
    6053{
     
    7871}
    7972
    80 /** Compare two strings.
    81  *
    82  * @param a     First string
    83  * @param b     Second string
    84  * @return      Zero if equal, nonzero if not equal
    85  */
     73/** Compare two strings. */
    8674int os_str_cmp(const char *a, const char *b)
    8775{
     
    8977}
    9078
    91 /** Return number of characters in string.
    92  *
    93  * @param str   String
    94  * @return      Number of characters in @a str.
    95  */
     79/** Return number of characters in string. */
    9680size_t os_str_length(const char *str)
    9781{
     
    9983}
    10084
    101 /** Duplicate string.
    102  *
    103  * @param str   String
    104  * @return      New string, duplicate of @a str.
    105  */
     85/** Duplicate string. */
    10686char *os_str_dup(const char *str)
    10787{
     
    10989}
    11090
    111 /** Get character from string at the given index.
    112  *
    113  * @param str           String
    114  * @param index         Character index (starting from zero).
    115  * @param out_char      Place to store character.
    116  * @return              EOK on success, EINVAL if index is out of bounds,
    117  *                      EIO on decoding error.
    118  */
     91/** Get character from string at the given index. */
    11992int os_str_get_char(const char *str, int index, int *out_char)
    12093{
     
    138111}
    139112
    140 /** Read one line of input from the user.
    141  *
    142  * @param ptr   Place to store pointer to new string.
    143  */
     113/** Read one line of input from the user. */
    144114int os_input_line(char **ptr)
    145115{
     
    156126}
    157127
    158 /** Simple command execution.
    159  *
    160  * @param cmd   Command and arguments (NULL-terminated list of strings.)
    161  *              Command is present just one, not duplicated.
    162  */
     128/** Simple command execution. */
    163129int os_exec(char *const cmd[])
    164130{
     
    191157}
    192158
    193 /** Store the executable file path via which we were executed.
    194  *
    195  * @param path  Executable path via which we were executed.
    196  */
     159/** Store the executable file path via which we were executed. */
    197160void os_store_ef_path(char *path)
    198161{
Note: See TracChangeset for help on using the changeset viewer.