Ignore:
File:
1 edited

Legend:

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

    r10d65d70 rd066259  
    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
    37 * All rights reserved.
    48 *
     
    98102 */
    99103
     104#include <str.h>
     105
    100106#include <errno.h>
    101107#include <stdbool.h>
    102108#include <stddef.h>
    103109#include <stdint.h>
    104 #include <str.h>
    105110
    106111/** Check the condition if wchar_t is signed */
     
    208213 *         code was invalid.
    209214 */
    210 int chr_encode(const wchar_t ch, char *str, size_t *offset, size_t size)
     215errno_t chr_encode(const wchar_t ch, char *str, size_t *offset, size_t size)
    211216{
    212217        if (*offset >= size)
     
    392397                        return 1;
    393398
    394                 if ((c1 == 0) || (c2 == 0))
     399                if (c1 == 0 || c2 == 0)
    395400                        break;
    396401        }
Note: See TracChangeset for help on using the changeset viewer.