mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
More documentation. Added mode argument to i/o_stdio_open.
This commit is contained in:
parent
53fc0f6332
commit
de4cfc3e4b
12 changed files with 1525 additions and 784 deletions
|
|
@ -192,12 +192,13 @@ int snd_input_stdio_attach(snd_input_t **inputp, FILE *fp, int close)
|
|||
* \brief Open a new input from a file
|
||||
* \param inputp Pointer to returned input handle
|
||||
* \param file File name
|
||||
* \param mode fopen(3) open mode
|
||||
* \return 0 on success otherwise a negative error code
|
||||
*/
|
||||
int snd_input_stdio_open(snd_input_t **inputp, const char *file)
|
||||
int snd_input_stdio_open(snd_input_t **inputp, const char *file, const char *mode)
|
||||
{
|
||||
int err;
|
||||
FILE *fp = fopen(file, "r");
|
||||
FILE *fp = fopen(file, mode);
|
||||
if (!fp) {
|
||||
//SYSERR("fopen");
|
||||
return -errno;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue