Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/generic/src/str.c

    rd066259 r10d65d70  
    11/*
    22 * 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
    73 * All rights reserved.
    84 *
     
    10298 */
    10399
    104 #include <str.h>
    105 
    106100#include <errno.h>
    107101#include <stdbool.h>
    108102#include <stddef.h>
    109103#include <stdint.h>
     104#include <str.h>
    110105
    111106/** Check the condition if wchar_t is signed */
     
    213208 *         code was invalid.
    214209 */
    215 errno_t chr_encode(const wchar_t ch, char *str, size_t *offset, size_t size)
     210int chr_encode(const wchar_t ch, char *str, size_t *offset, size_t size)
    216211{
    217212        if (*offset >= size)
     
    397392                        return 1;
    398393
    399                 if (c1 == 0 || c2 == 0)
     394                if ((c1 == 0) || (c2 == 0))
    400395                        break;
    401396        }
Note: See TracChangeset for help on using the changeset viewer.