New unctrl

This commit is contained in:
jl777
2019-02-18 05:53:41 -11:00
parent c0bdecef07
commit 20402a3a01
2 changed files with 9 additions and 1 deletions

View File

@@ -422,3 +422,10 @@ int32_t md_readchar(void)
return(0);
}
char *unctrl(char c)
{
static char ctrlstr[3];
ctrlstr[0] = '^';
ctrlstr[1] = 'a' + c;
return(ctrlstr);
}