XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
stdio.h File Reference
#include <stdint.h>
#include <_xeneva.h>
#include <stdarg.h>
Include dependency graph for stdio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _IO_FILE_
 

Macros

#define SEEK_SET   0
 
#define SEEK_CUR   1
 
#define SEEK_END   2
 
#define stdin   (FILE*)(1)
 
#define stdout   (FILE*)(1+1)
 
#define stderr   (FILE*)(2+1)
 

Typedefs

typedef struct _IO_FILE_ FILE
 

Functions

XE_LIB int fprintf (FILE *, const char *,...)
 
XE_LIB int printf (const char *,...)
 
XE_LIB FILEfopen (const char *name, const char *mode)
 
XE_LIB size_t fread (void *ptr, size_t size, size_t nmemb, FILE *stream)
 
XE_LIB size_t fwrite (void *ptr, size_t sz, size_t nmemb, FILE *stream)
 
XE_LIB long ftell (FILE *fp)
 
XE_LIB int fseek (FILE *fp, long int offset, int pos)
 
XE_LIB int fgetc (FILE *fp)
 
XE_LIB int fclose (FILE *fp)
 
XE_LIB int fflush (FILE *stream)
 
XE_LIB int fputc (int c, FILE *stream)
 
XE_LIB int fputs (const char *s, FILE *stream)
 
XE_LIB int puts (const char *s)
 
XE_LIB int vfprintf (FILE *stream, const char *format, va_list arg)
 
XE_LIB int vsnprintf (char *output, size_t sz, const char *format, va_list ap)
 
XE_LIB int vsprintf (char *output, const char *format, va_list list)
 
XE_LIB int vprintf (const char *format, va_list list)
 
XE_LIB int sprintf (char *str, const char *string,...)
 
XE_LIB int snprintf (char *output, size_t sz, const char *format,...)
 
XE_LIB int getchar ()
 
XE_LIB int remove (const char *pathname)
 
XE_LIB int rename (const char *oldpath, const char *newpath)
 
XE_LIB int putchar (int c)
 
XE_LIB int scanf (const char *format,...)
 
XE_LIB int sscanf (const char *str, const char *format,...)
 

Macro Definition Documentation

◆ SEEK_CUR

#define SEEK_CUR   1

◆ SEEK_END

#define SEEK_END   2

◆ SEEK_SET

#define SEEK_SET   0

◆ stderr

#define stderr   (FILE*)(2+1)

◆ stdin

#define stdin   (FILE*)(1)

◆ stdout

#define stdout   (FILE*)(1+1)

Typedef Documentation

◆ FILE

typedef struct _IO_FILE_ FILE

BSD 2-Clause License

Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Function Documentation

◆ fclose()

XE_LIB int fclose ( FILE fp)

◆ fflush()

XE_LIB int fflush ( FILE stream)

◆ fgetc()

XE_LIB int fgetc ( FILE fp)

◆ fopen()

XE_LIB FILE * fopen ( const char *  name,
const char *  mode 
)

BSD 2-Clause License

Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

◆ fprintf()

XE_LIB int fprintf ( FILE stream,
const char *  format,
  ... 
)

◆ fputc()

XE_LIB int fputc ( int  c,
FILE stream 
)

◆ fputs()

XE_LIB int fputs ( const char *  s,
FILE stream 
)

◆ fread()

XE_LIB size_t fread ( void *  ptr,
size_t  size,
size_t  nmemb,
FILE stream 
)

◆ fseek()

XE_LIB int fseek ( FILE fp,
long int  offset,
int  pos 
)

◆ ftell()

XE_LIB long ftell ( FILE fp)

◆ fwrite()

XE_LIB size_t fwrite ( void *  ptr,
size_t  sz,
size_t  nmemb,
FILE stream 
)

◆ getchar()

XE_LIB int getchar ( )

◆ printf()

XE_LIB int printf ( const char *  format,
  ... 
)

◆ putchar()

XE_LIB int putchar ( int  c)

◆ puts()

XE_LIB int puts ( const char *  s)

◆ remove()

XE_LIB int remove ( const char *  pathname)

◆ rename()

XE_LIB int rename ( const char *  oldpath,
const char *  newpath 
)

◆ scanf()

XE_LIB int scanf ( const char *  format,
  ... 
)

◆ snprintf()

XE_LIB int snprintf ( char *  output,
size_t  sz,
const char *  format,
  ... 
)

◆ sprintf()

XE_LIB int sprintf ( char *  str,
const char *  string,
  ... 
)

◆ sscanf()

XE_LIB int sscanf ( const char *  str,
const char *  format,
  ... 
)

◆ vfprintf()

XE_LIB int vfprintf ( FILE stream,
const char *  format,
va_list  arg 
)

◆ vprintf()

XE_LIB int vprintf ( const char *  format,
va_list  list 
)

◆ vsnprintf()

XE_LIB int vsnprintf ( char *  output,
size_t  sz,
const char *  format,
va_list  ap 
)

◆ vsprintf()

XE_LIB int vsprintf ( char *  output,
const char *  format,
va_list  list 
)