mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
Better readLine
This commit is contained in:
parent
897af34aa9
commit
21a52fd58f
4 changed files with 4 additions and 3 deletions
BIN
lama-spec.pdf
BIN
lama-spec.pdf
Binary file not shown.
|
|
@ -1246,7 +1246,7 @@ extern void* LreadLine () {
|
|||
if (errno != 0)
|
||||
failure ("readLine (): %s\n", strerror (errno));
|
||||
|
||||
return LmakeString (0);
|
||||
return BOX (0);
|
||||
}
|
||||
|
||||
extern void* Lfread (char *fname) {
|
||||
|
|
|
|||
|
|
@ -54,7 +54,8 @@ returns a string, acquired via processing these arguments according to the forma
|
|||
|
||||
\descr{\lstinline|fun tl (value)|}{Return the tail of a given list.}
|
||||
|
||||
\descr{\lstinline|fun readLine ()|}{Reads a line from the standard input and returns it as a string.}
|
||||
\descr{\lstinline|fun readLine ()|}{Reads a line from the standard input and returns it as a string. Return "\lstinline|0|" if end
|
||||
of standard input was encountered.}
|
||||
|
||||
\descr{\lstinline|fun printf (fmt, ...)|}{Takes a format string (as per GNU C Library~\cite{GNUCLib} and a variable number of arguments and
|
||||
prints these arguments on the standard output, according to the format string.}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
let version = "Version 1.00, 3e2c87d4, Sun Feb 23 22:15:27 2020 +0300"
|
||||
let version = "Version 1.00, 897af34a, Mon Feb 24 01:08:09 2020 +0300"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue