small screen updating optimization in gtk front end
[nvi.git] / common / util2.c
blob5b22b550b894109beeefa9c9d69a4ccd467ce735
1 #include "config.h"
3 #include <sys/types.h>
4 #include <sys/queue.h>
5 #include <sys/time.h>
7 #include <bitstring.h>
8 #include <errno.h>
9 #include <limits.h>
10 #include <stdio.h>
11 #include <stdlib.h>
12 #include <string.h>
13 #include <unistd.h>
15 #include "multibyte.h"
18 * PUBLIC: void * v_strset __P((CHAR_T *s, CHAR_T c, size_t n));
20 void *
21 v_strset(CHAR_T *s, CHAR_T c, size_t n)
23 CHAR_T *ss = s;
25 while (n--) *s++ = c;
26 return ss;