source:
trunk/sys/dietlibc/wcwidth.c
@
26
| Last change on this file since 26 was 1, checked in by , 9 years ago | |
|---|---|
| File size: 125 bytes | |
| Rev | Line | |
|---|---|---|
| [1] | 1 | #define _XOPEN_SOURCE |
| 2 | #include <wchar.h> | |
| 3 | ||
| 4 | int wcwidth(wchar_t c) { | |
| 5 | if (!c) return 0; | |
| 6 | if (c<' ') return -1; | |
| 7 | return 1; | |
| 8 | } |
Note: See TracBrowser
for help on using the repository browser.
