Changeset c5cb943d in mainline for uspace/app/sbi/src/os/posix.c
- Timestamp:
- 2010-06-09T19:01:08Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1113c9e
- Parents:
- 051bc69a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/os/posix.c
r051bc69a rc5cb943d 159 159 } 160 160 161 /** Convert character to new string. 162 * 163 * @param chr Character 164 * @return Newly allocated string. 165 */ 166 char *os_chr_to_astr(wchar_t chr) 167 { 168 char *str; 169 170 str = malloc(2); 171 if (str == NULL) { 172 printf("Memory allocation error.\n"); 173 exit(1); 174 } 175 176 str[0] = (char) chr; 177 str[1] = '\0'; 178 179 return str; 180 } 181 161 182 #define OS_INPUT_BUFFER_SIZE 256 162 183 static char os_input_buffer[OS_INPUT_BUFFER_SIZE];
Note:
See TracChangeset
for help on using the changeset viewer.