cstack_t *stack = cstack_init();
// for each char in line
- while(*c) {
+ for(; *c; c++) {
// if char is in special char list
if(strchr(special, *c)) {
// print regular char
wprintw(window, "%c", *c);
}
-
- c++;
}
// pop stack until empty to prevent formated trailing spaces