MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / vis

Function vis

extern/editline/src/vis.c:642–655  ·  view source on GitHub ↗

* vis - visually encode characters */

Source from the content-addressed store, hash-verified

640 * vis - visually encode characters
641 */
642char *
643vis(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
657char *
658nvis(char *mbdst, size_t dlen, int c, int flags, int nextc)

Callers 1

rl_add_defunFunction · 0.85

Calls 1

istrsenvisxFunction · 0.85

Tested by

no test coverage detected