NAG C Library Function Document

nag_write_line (x04bac)

1
Purpose

nag_write_line (x04bac) writes a single line to an external file.

2
Specification

#include <nag.h>
#include <nagx04.h>
void  nag_write_line (Nag_FileID fileid, const char *line)

3
Description

nag_write_line (x04bac) may be used to write to files opened with nag_open_file (x04acc).

4
References

None.

5
Arguments

1:     fileid Nag_FileIDInput
On entry: the identifier of the file to be written to. This must have been returned by a call of nag_open_file (x04acc).
2:     line const char *Input
On entry: a character-string. This is written to the external file as a single record. Trailing blanks are not output, except that if line is entirely blank, a single blank character is output.

6
Error Indicators and Warnings

None.

7
Accuracy

Not applicable.

8
Parallelism and Performance

nag_write_line (x04bac) is not threaded in any implementation.

9
Further Comments

None.

10
Example

See Section 10 in nag_open_file (x04acc).