Lines Matching refs:pos
127 static void draw_cylon(char buffer[], size_t buflen, unsigned width, unsigned pos) {
131 assert(pos <= width+1); /* 0 or width+1 mean that the center light is behind the corner */
133 if (pos > 1) {
134 if (pos > 2)
135 p = mempset(p, ' ', pos-2);
140 if (pos > 0 && pos <= width) {
147 if (pos < width) {
150 if (pos < width-1)
151 p = mempset(p, ' ', width-1-pos);