dwm-flexipatch/patch/statuscmd.c

20 lines
365 B
C
Raw Normal View History

2020-04-13 12:59:58 +00:00
static char rawstext[256];
static const char statusexport[] = "export BUTTON=-;";
#if !DWMBLOCKS_PATCH
2020-04-13 12:59:58 +00:00
static int statuscmdn;
static int lastbutton;
#endif // DWMBLOCKS_PATCH
2020-04-13 12:59:58 +00:00
void
copyvalidchars(char *text, char *rawtext)
{
int i = -1, j = 0;
while (rawtext[++i]) {
if ((unsigned char)rawtext[i] >= ' ') {
text[j++] = rawtext[i];
}
}
text[j] = '\0';
}