Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

int  fs_setvbuf (FS_FILE    *p_file,

...

                 char       *p_buf,

...

                 int         mode,
                 fs_size_t   size);

...

File

...

...

Called from

...

Code enabled by

...

fs_api.c

...

Application

...

...

FS_CFG_API_EN and FS_CFG_FILE_BUF_EN

Anchor10923911092391Assign buffer to a file.anchor11048631104863

Arguments

...

10923931092393p_file Anchor11409241140924

Pointer to a file.

...

10923941092394p_buf Anchor11409311140931

Pointer to buffer.

Anchor10923951092395mode Anchor11409381140938

Buffer mode:

...

classWebWorks_Indent_1

...

FS__IONBR

...

classWebWorks_Indent_2

...

...

Unbuffered.

...

classWebWorks_Indent_1

...

FS__IOFBF

...

...

Fully buffered.

...

classWebWorks_Indent_1

...

size

...

classWebWorks_Indent_2

...

Size of buffer, in octets.

...

Returned Value

...

-1, if an error occurs.

Anchor109240110924010, if no error occurs. Anchor11002611100261

Notes/Warnings

...

...