Fork us on GitHub Follow us on Facebook Follow us on Twitter

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


Ignore:
Timestamp:
2009-11-30T19:51:29Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
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 rb67c7d6  
    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.