source: svn/trunk/newcon3bcm2_21bu/dta/tests/unit_test/stdio.h @ 2

Last change on this file since 2 was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 782 bytes
Line 
1#ifndef __STDIO_H__
2#define __STDIO_H__
3
4#include "bstd.h"
5
6#define stderr 1
7typedef void *FILE;
8int fprintf(int* f, const char *format, ...);
9size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
10size_t   fwrite(const  void  *ptr,  size_t  size,  size_t  nmemb,  FILE *stream);
11FILE *fopen(const char *path, const char *mode);
12int fclose(FILE *stream);
13int fseek(FILE *stream, long offset, int whence);
14long ftell(FILE *stream);
15int fflush(FILE *stream);
16#ifndef SEEK_SET
17#  define SEEK_SET        0       /* Seek from beginning of file.  */
18#endif
19#ifndef SEEK_CUR
20#  define SEEK_CUR        1       /* Seek from current position.  */
21#endif
22#ifndef SEEK_END
23#  define SEEK_END        2       /* Set file pointer to EOF plus "offset" */
24#endif
25#endif /* __STDIO_H__ */
Note: See TracBrowser for help on using the repository browser.