Skip to content
Snippets Groups Projects
Commit ff3e7503 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

New documenation

Rev: doc/precompiled/FILE:1.1
parent f0e2972c
No related branches found
No related tags found
No related merge requests found
NAME
/precompiled/FILE - buffered IO
DESCRIPTION
/precompiled/FILE implements buffered IO and some nice functions
not available in /precompiled/file such as gets(). Almost all the
functions of /precompiled/file are present. The extra functions
are listed below:
SEE ALSO
/precompiled/file
============================================================================
NAME
gets - get one line
SYNTAX
#include <stdio.h>
string FILE->gets();
DESCRIPTION
This function returns one line from the FILE, it returns zero if
no more lines are available.
============================================================================
NAME
printf - formatted print
SYNTAX
#include <stdio.h>
string FILE->printf(string format, mixed ... data);
DESCRIPTION
This function does aproximately the same as:
FILE->write(sprintf(format,@data))
SEE ALSO
sprintf
============================================================================
NAME
ungets - put a character back in the buffer
SYNTAX
#include <stdio.h>
string FILE->ungets(string s);
DESCRIPTION
This function puts a string back in the input buffer. The string
can then be read with read or gets.
============================================================================
NAME
getchar - get one character from the input stream
SYNTAX
#include <stdio.h>
int FILE->getchar();
DESCRIPTION
This function returns one character from the input stream. Note
that the return value is the ascii value of the character, not
a string containing one character.
============================================================================
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment