* vis - visually encode characters */
| 640 | * vis - visually encode characters |
| 641 | */ |
| 642 | char * |
| 643 | vis(char *mbdst, int c, int flags, int nextc) |
| 644 | { |
| 645 | char cc[2]; |
| 646 | int ret; |
| 647 | |
| 648 | cc[0] = c; |
| 649 | cc[1] = nextc; |
| 650 | |
| 651 | ret = istrsenvisx(mbdst, NULL, cc, 1, flags, "", NULL); |
| 652 | if (ret < 0) |
| 653 | return NULL; |
| 654 | return mbdst + ret; |
| 655 | } |
| 656 | |
| 657 | char * |
| 658 | nvis(char *mbdst, size_t dlen, int c, int flags, int nextc) |
no test coverage detected