Seems like there is a problem with the strcat
How would you dump the entire file into memory?
Type: Posts; User: mbooka
Seems like there is a problem with the strcat
How would you dump the entire file into memory?
Hi
i get a segmentation fault when i want to close a file i have opened
here is the code
char *temp;
temp = (char *)malloc(1000);
It looks like the program does not pick up the > character. It will assumedly pipe it out to what ever is on the other end.
Hi i get a
"subscripted value is neither array nor pointer"
when i compile my source.
the error is pointing this line
Hi,
Is there a struct that contains file stats? or a function that can get the size of a file.
I am trying to allocate memory space for files i am trying to modify. But first i need to know the...
I will keep that in mind when memcpy doesnt seem to work.
Also with regards to SlyMaelstrom comment, i cant copy my code because i cant copy from cygwin. I work remotely on a unix machine on a...
after looking at my code for a couple of minutes i realise that it was my stupid fault and left out a small but significant ';'.
:p...
my error that i get or the error i think is wrong with the code?
if it is the first one all i get is
"pass error"
the errors is on the memcpy line
i am trying to use memcpy but it gives me a compile error
this is what i am doing
char *temp;
char space[21];
temp = malloc(5000);
ok thanks =D
hi
i am try to create a dynamic array of char
this is what i have done
char *temp;
to be honest i already tried it before posting it. There are so many ways to do one thing and i was just seeing if there are better ways to do one thing.
Is there a site that has good c...
thank you. also is %x to print in hex ?
assuming that there is something already in to_b_tested
Hi
i have an array and wish to compare certain parts of the array to a string. For example i have the string "AB CD EF" and i want to test my string to see if it is of AB or CD or EF
this is...
thanks :)
Hi,
this should be a simple question. How do i initialise an array of strings and then how do i copy strings into the array?
I have loaded some data into an array of 80. how do i go about removing the first element of the array and pusing everything else one position in the array?
I found out what i was doing wrong.
When i check to see if i can open or read the file i didnt put braces around the openning of the file first.
if (out_fp = fopen(out_filename, "w") ==...
yep... doing the same thing as when i check out_fp :)
That doesnt solve the segmenation fault.
I can open a new file and open the file to read it.
it crashes somewhere between the while loop statment.
Hi,
I am trying to copy several rtf files into one rtf file. this is basically what i have done
char in_filename[MAXPATHLEN];
char out_filename[MAXPATHLEN];
FILE *in_fp, *out_fp;
thanks... i did the fseek backwards and that works.
ok. thanks. i will see how i go