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