Я попытался сделать < /p>
Код: Выделить всё
endwin();
char cmd[PATH_MAX];
snprintf(cmd, sizeof(cmd), "cd %s", dirname);
system(cmd);
return 0;
Подробнее здесь: https://stackoverflow.com/questions/795 ... in-ncurses
Код: Выделить всё
endwin();
char cmd[PATH_MAX];
snprintf(cmd, sizeof(cmd), "cd %s", dirname);
system(cmd);
return 0;