Ignore:
Timestamp:
Oct 17, 2019, 3:14:01 PM (5 years ago)
Author:
alain
Message:

Introduce FBF related syscalls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/mini-libc/stdio.h

    r637 r643  
    141141             const char * format, ... );
    142142
     143/*********************************************************************************************
     144 * This function moves <nitems> oblects, each <size> bytes long, from an input stream
     145 * identified by <stream>, to the user buffer identified by the <buffer> argument.
     146 * It can be a regular file or a character oriented input device.
     147 *********************************************************************************************
     148 * @ stream    : pointer on a stream.
     149 * @ format    : formated string.
     150 * @ returns actual number of items read if success / returns 0 if failure.
     151 ********************************************************************************************/
     152unsigned int fread( void         * buffer,
     153                    unsigned int   size,
     154                    unsigned int   nitems,
     155                    FILE         * stream ); 
     156
     157/*********************************************************************************************
     158 * This function moves <nitems> oblects, each <size> bytes long, from an user buffer
     159 * identified by the <buffer> argument, to an output stream identified by <stream>.
     160 * It can be a  regular file or a character oriented input device.
     161 *********************************************************************************************
     162 * @ stream    : pointer on a stream.
     163 * @ format    : formated string.
     164 * @ returns actual number of written items if success / returns 0 if failure.
     165 ********************************************************************************************/
     166unsigned int fwrite( void         * buffer,
     167                     unsigned int   size,
     168                     unsigned int   nitems,
     169                     FILE         * stream ); 
    143170
    144171#endif  // _STDIO_H_
Note: See TracChangeset for help on using the changeset viewer.