C-Menu 0.2.9
A User Interface Toolkit
Loading...
Searching...
No Matches
putnccells.c File Reference
#include <notcurses/notcurses.h>
Include dependency graph for putnccells.c:

Go to the source code of this file.

Functions

int write_cell_array (struct ncplane *n, int starty, int startx, const nccell *cells, int count)

Function Documentation

◆ write_cell_array()

int write_cell_array ( struct ncplane * n,
int starty,
int startx,
const nccell * cells,
int count )

Definition at line 3 of file putnccells.c.

3 {
4 for (int i = 0; i < count; i++) {
5 if (ncplane_putc_yx(n, starty, startx + i, &cells[i]) < 0) {
6 return -1;
7 }
8 }
9 return 0;
10}