NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
cstdio API

Standard C cstdio API functions. More...

Modules

 fseek origin constants
 Constants for use in calls to fseek.
 

Macros

#define getc(_handle)   fgetc(_handle)
 Get character from file.
 
#define putc(_ch, _handle)   fputc(_ch, _handle)
 Write character to file.
 

Functions

int fclose (byte handle)
 Close file.
 
int remove (string filename)
 Remove file.
 
int rename (string old, string new)
 Rename file.
 
char fgetc (byte handle)
 Get character from file.
 
string fgets (string &str, int num, byte handle)
 Get string from file.
 
int feof (byte handle)
 Check End-of-file indicator.
 
void set_fopen_size (unsigned long fsize)
 Set the default fopen file size.
 
byte fopen (string filename, const string mode)
 Open file.
 
int fflush (byte handle)
 Flush file.
 
unsigned long ftell (byte handle)
 Get current position in file.
 
char fputc (char ch, byte handle)
 Write character to file.
 
int fputs (string str, byte handle)
 Write string to file.
 
int getchar ()
 Get character from stdin.
 
void printf (string format, variant value)
 Print formatted data to stdout.
 
void fprintf (byte handle, string format, variant value)
 Write formatted data to file.
 
void sprintf (string &str, string format, variant value)
 Write formatted data to string.
 
int fseek (byte handle, long offset, int origin)
 Reposition file position indicator.
 
void rewind (byte handle)
 Set position indicator to the beginning.
 

Variables

unsigned long __fopen_default_size = 1024
 

Detailed Description

Standard C cstdio API functions.