I got it working guys. Thanks for all the help!
Type: Posts; User: codeshark
I got it working guys. Thanks for all the help!
Hey salem lol. glad to see you again. well the file is literally called "2". I just dont know how to sort "myshell.c" and putting that output in a file called "2"...
I am trying to implement the command
sort myshell.c > 2 in C.
But I am having difficulties understanding how to use pipelines to do so.
int main(){
char *args[] = {"sort",...
Thank you Salem, you're the bomb.
Ill look into dup(), how would I check for > or >> or | to do the according process?
I have to extend and modify the program to:
Redirect(>)standard output from a command to a file. If the file already exist, it will beerased and overwritten without warning.
Examples:
COP$...
I was able to get the rotation of 90 degrees and -90 degrees. Cant figure out the 180 yet...
int rotate(PIXEL* original, int rows, int cols, int rotation,
PIXEL** new, int*...
I tried implementing your approach but it didnt quite work :-/. I really don't know why.
int rotate(PIXEL* original, int rows, int cols, int rotation,
PIXEL** new, int* newrows,...
Makes sense, Okay Ill try it now. Thanks for the help by the way. People usually dont like to help much these days.
I am trying to rotate a bmp image by 90(-270), 180(-180), 270(-90) degrees. But I am not sure how to go about it. I know I have to manipulate the rows and columns for the bitmap. But I am unsure how...