That was it. THANK YOU!
Type: Posts; User: wiggsfly
That was it. THANK YOU!
Yeah, I'm entering the loop and it closes afterwards (although with the current design it will never hit the close). I want to force the user to use cntrl-c to end for now.
Here is the whole code:...
When I put the following code in a loop it will not write to the file. When I take it out of the loop it works fine (I realize that for now it is an infinite loop as that is part of the assignment)....
I thought I had this done, but if I try to run with multiple files (mygrep print *.c) I get a double free or corruption runtime error. Any suggestions.
/*
*CS306 Lab 1 lab1.c
*Author: Chris...
Got it. I removed
chars_left = INC_BUFF_SIZE; and it seems to be working fine. Thanks all!
That's what I would have thought, but that's not what is happening. I've tried testing for null with some print statements, yet they never get executed.
Hi all, I'm new to C after working with PHP and other languages for years. I'm taking a class and having some problems with an assignment. In the following code, everything works fine until I try to...