prev up next   top/contents search

comp.lang.c FAQ list · Question 12.28

Q: I can't even get a simple fopen call to work! What's wrong with this call?

	FILE *fp = fopen(filename, 'r');


A: fopen's mode argument must be a string, like "r", not a character like 'r'. See also question 8.1.


prev up next   contents search
about this FAQ list   about eskimo   search   feedback   copyright

Hosted by Eskimo North