-
Output Question.
Code:
system("cd");
printf(">");
I want the output ">" to be placed after the output of "cd". Currently, ">" appears on a new line after "cd". Is there any way to change this?
[p.s. I checked the FAQ and google this time, and couldn't find anything related on this topic.]
-
most commands throw in a new line at the end.
unless you want to alter the output of the command i think your stuck with it. you can use the output of the command like a file.
-
getcwd()? Is than in stdlib.h?
-
#include <unistd.h>
getcwd()
-
Thanks
I got it to work. Thank to everyone :)