Deleted Added
full compact
addwstr.c (1.5) addwstr.c (1.6)
1/* $NetBSD: addwstr.c,v 1.5 2019/05/20 22:17:41 blymn Exp $ */
1/* $NetBSD: addwstr.c,v 1.6 2019/06/09 07:40:14 blymn Exp $ */
2
3/*
4 * Copyright (c) 2005 The NetBSD Foundation Inc.
5 * All rights reserved.
6 *
7 * This code is derived from code donated to the NetBSD Foundation
8 * by Ruibiao Qiu <ruibiao@arl.wustl.edu,ruibiao@gmail.com>.
9 *

--- 21 unchanged lines hidden (view full) ---

31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 */
36
37#include <sys/cdefs.h>
38#ifndef lint
2
3/*
4 * Copyright (c) 2005 The NetBSD Foundation Inc.
5 * All rights reserved.
6 *
7 * This code is derived from code donated to the NetBSD Foundation
8 * by Ruibiao Qiu <ruibiao@arl.wustl.edu,ruibiao@gmail.com>.
9 *

--- 21 unchanged lines hidden (view full) ---

31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 */
36
37#include <sys/cdefs.h>
38#ifndef lint
39__RCSID("$NetBSD: addwstr.c,v 1.5 2019/05/20 22:17:41 blymn Exp $");
39__RCSID("$NetBSD: addwstr.c,v 1.6 2019/06/09 07:40:14 blymn Exp $");
40#endif /* not lint */
41
42#include <string.h>
43
44#include "curses.h"
45#include "curses_private.h"
46
47/*

--- 61 unchanged lines hidden (view full) ---

109/*
110 * mvwaddnwstr --
111 * Add a string of at most n characters to the given window
112 * starting at (y, x).
113 */
114int
115mvwaddnwstr(WINDOW *win, int y, int x, const wchar_t *str, int count)
116{
40#endif /* not lint */
41
42#include <string.h>
43
44#include "curses.h"
45#include "curses_private.h"
46
47/*

--- 61 unchanged lines hidden (view full) ---

109/*
110 * mvwaddnwstr --
111 * Add a string of at most n characters to the given window
112 * starting at (y, x).
113 */
114int
115mvwaddnwstr(WINDOW *win, int y, int x, const wchar_t *str, int count)
116{
117 if (_cursesi_wmove(win, y, x, 0) == ERR)
117 if (wmove(win, y, x) == ERR)
118 return ERR;
119
120 return waddnwstr(win, str, count);
121}
122
123/*
124 * waddnwstr --
125 * Add a string (at most n characters) to the given window

--- 44 unchanged lines hidden ---
118 return ERR;
119
120 return waddnwstr(win, str, count);
121}
122
123/*
124 * waddnwstr --
125 * Add a string (at most n characters) to the given window

--- 44 unchanged lines hidden ---