More documentation. Added mode argument to i/o_stdio_open.

This commit is contained in:
Abramo Bagnara 2001-03-29 09:10:46 +00:00
parent 53fc0f6332
commit de4cfc3e4b
12 changed files with 1525 additions and 784 deletions

View file

@ -187,10 +187,17 @@ int snd_output_stdio_attach(snd_output_t **outputp, FILE *fp, int close)
return 0;
}
int snd_output_stdio_open(snd_output_t **outputp, const char *file)
/**
* \brief Open a new output to a file
* \param outputp Pointer to returned output handle
* \param file File name
* \param mode fopen(3) open mode
* \return 0 on success otherwise a negative error code
*/
int snd_output_stdio_open(snd_output_t **outputp, const char *file, const char *mode)
{
int err;
FILE *fp = fopen(file, "w");
FILE *fp = fopen(file, mode);
if (!fp) {
//SYSERR("fopen");
return -errno;