[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
[an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]![]() |
![]() |
![]() |
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
![]() |
![]() |
![]() |
Følgende virker næsten mage til cd Den Kasse skulle kunne scores.. Hans-Christian Stadler -------------------------------------------------------------- #include <iostream> #include <cerrno> #include <cstdio> #include <sys/ioctl.h> using namespace std; int main (int argc, char *argv[]) { const int MAX_STR = 128; char cmd[MAX_STR], *inp=cmd; const char *arg = argc > 1 ? argv[1] : ""; if (snprintf(cmd, MAX_STR, "cd %s\n", arg) >= MAX_STR) cerr << "Error: Cannot handle long dir names" << endl, exit(-1); while (*inp) if (ioctl(STDIN_FILENO, TIOCSTI, inp++)) cerr << "Error: " << strerror(errno) << endl, exit(-1); }
![]() |
![]() |
![]() |
||||||||||||
|
||||||||||||||
![]() | ||||||||||||||
|
||||||||||||||
![]() |
![]() |
![]() |