repo.or.cz
/
midnight-commander.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge commit 'origin/170_belarussian_translation'
[midnight-commander.git]
/
slang
/
slwcwidth.c
blob
4837d5dbae23b7e00fce43797de576e50805ea83
1
#include
"slinclud.h"
2
#include <ctype.h>
3
4
#include
"slang.h"
5
#include
"_slang.h"
6
7
#define DEFINE_PSLWC_WIDTH_TABLE
8
#include
"slwcwidth.h"
9
int
SLwchar_wcwidth
(
SLwchar_Type ch
)
10
{
11
int
w
;
12
13
SL_WIDTH_ALOOKUP
(
w
,
ch
);
14
return
w
;
15
}