Forum: C Feb 4th, 2009 |
| Replies: 4 Views: 1,221 malloc returns a void* to the memory allocated and you need to ensure that you type cast it to the correct type. |
Forum: C Aug 6th, 2008 |
| Replies: 14 Views: 1,779 I assumed you needed multiple files open at the same time, for above requirement AD has already given you the code. Go through it. |
Forum: C Aug 6th, 2008 |
| Replies: 14 Views: 1,779 or else you can use an array of FILE* if you want to use them elsewhere in the program. or write a structure with elements as FILE* and filename and use an array of that structure. |