XenevaOS
Loading...
Searching...
No Matches
Functions
stdio.cpp File Reference
#include <stdio.h>
#include <sys\_kefile.h>
#include <string.h>
#include <stdlib.h>
#include <_xeprint.h>
Include dependency graph for stdio.cpp:

Functions

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

Function Documentation

◆ fclose()

int fclose ( FILE fp)

◆ fflush()

int fflush ( FILE stream)

◆ fgetc()

int fgetc ( FILE fp)

◆ fopen()

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()

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

◆ fputc()

int fputc ( int  c,
FILE stream 
)

◆ fputs()

int fputs ( const char *  s,
FILE stream 
)

◆ fread()

size_t fread ( void *  ptr,
size_t  sz,
size_t  nmemb,
FILE stream 
)

◆ fseek()

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

◆ ftell()

long ftell ( FILE fp)

◆ fwrite()

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

◆ getchar()

int getchar ( )

◆ printf()

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

◆ putchar()

int putchar ( int  c)

◆ puts()

int puts ( const char *  s)

◆ remove()

int remove ( const char *  pathname)

◆ rename()

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

◆ scanf()

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

◆ snprintf()

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

◆ sprintf()

int sprintf ( char *  output,
const char *  format,
  ... 
)

◆ sscanf()

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

◆ vfprintf()

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

◆ vprintf()

int vprintf ( const char *  format,
va_list  list 
)

◆ vsnprintf()

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

◆ vsprintf()

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