now the problem with this is that theoretically, since c can span the entire address range, int might not hold all possible addresses of c.Code:/*writes a (non-NULL terminated) char array to the file f*/ void write_ch_arr(char *c, int i, FILE *f) { while (i) { putc(c[i], f); --i; } return; }
so what type should I make i?
is the only way to do this with pointer arithmetic? Can I do it with an index and iteration?
of course, this ignores the inefficiency of byte vs. block based transfers.