Changes in boot/generic/src/str.c [10d65d70:d066259] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/generic/src/str.c
r10d65d70 rd066259 1 1 /* 2 2 * Copyright (c) 2001-2004 Jakub Jermar 3 * Copyright (c) 2005 Martin Decky 4 * Copyright (c) 2008 Jiri Svoboda 5 * Copyright (c) 2011 Martin Sucha 6 * Copyright (c) 2011 Oleg Romanenko 3 7 * All rights reserved. 4 8 * … … 98 102 */ 99 103 104 #include <str.h> 105 100 106 #include <errno.h> 101 107 #include <stdbool.h> 102 108 #include <stddef.h> 103 109 #include <stdint.h> 104 #include <str.h>105 110 106 111 /** Check the condition if wchar_t is signed */ … … 208 213 * code was invalid. 209 214 */ 210 int chr_encode(const wchar_t ch, char *str, size_t *offset, size_t size)215 errno_t chr_encode(const wchar_t ch, char *str, size_t *offset, size_t size) 211 216 { 212 217 if (*offset >= size) … … 392 397 return 1; 393 398 394 if ( (c1 == 0) || (c2 == 0))399 if (c1 == 0 || c2 == 0) 395 400 break; 396 401 }
Note:
See TracChangeset
for help on using the changeset viewer.