Pass the stream as first argument, as in fprintf(3) and fscanf(3).