Changeset b67c7d64 in mainline for uspace/app/bdsh/input.c


Ignore:
Timestamp:
2009-11-30T19:51:29Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e866806
Parents:
0f06dbc
Message:

Add wstr_to_astr() for easy conversion from wide string to string.

File:
1 edited

Legend:

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

    r0f06dbc rb67c7d64  
    134134static char *tinput_get_str(tinput_t *ti)
    135135{
    136         char *str;
    137 
    138         str = malloc(STR_BOUNDS(ti->nc) + 1);
    139         if (str == NULL)
    140                 return NULL;
    141 
    142         wstr_to_str(str, STR_BOUNDS(ti->nc) + 1, ti->buffer);
    143 
    144         return str;
     136        return wstr_to_astr(ti->buffer);
    145137}
    146138
Note: See TracChangeset for help on using the changeset viewer.