Home| superdarn |src.lib|tk|snd| SndWrite Index

SndWrite

Syntax
int SndWrite(int fid, struct SndData *snd);
Header
superdarn/sndwrite.h
Library
snd
Description

The SndWrite function writes a snd data record to an open file.

The data is written to the file with the descriptor given by the argument fid. If fid is set to (-1) then the function will just calculate the number of bytes required to store the data. The data record is contructed from the snd data structure pointed to by the argument snd.

Returns
Returns the number of bytes written on success. On error, (-1) is returned.
Errors
On error, (-1) is returned.
Example
None