repo.or.cz
/
nvi.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
use thread specific memory for conversions
[nvi.git]
/
common
/
util2.c
blob
5b22b550b894109beeefa9c9d69a4ccd467ce735
1
#include
"config.h"
2
3
#include <sys/types.h>
4
#include <sys/queue.h>
5
#include <sys/time.h>
6
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>
14
15
#include
"multibyte.h"
16
17
/*
18
* PUBLIC: void * v_strset __P((CHAR_T *s, CHAR_T c, size_t n));
19
*/
20
void
*
21
v_strset
(
CHAR_T
*
s
,
CHAR_T c
,
size_t
n
)
22
{
23
CHAR_T
*
ss
=
s
;
24
25
while
(
n
--) *
s
++ =
c
;
26
return
ss
;
27
}
28