documentation and version bump (0.3 for libraries in /lib)

This commit is contained in:
Lisa Milne 2023-11-28 15:40:20 +10:00
parent 3aeae461f0
commit 6fea9dd2db
2 changed files with 10 additions and 5 deletions

View file

@ -1,6 +1,6 @@
var clite = {
state:{
version:'0.2-3',
version:'0.3-1',
isinit:false,
runlevel:1
},

View file

@ -284,13 +284,18 @@ stdio (libio.so): io.include('stdio')
isattty(fd)
returns true if fd refers to a tty.
fprintf(fd,format,args)
vfprintf(fd,format,args)
Print formatted text to the file at fd.
Actually formatting is a work in progress, ignore the args.
args is an array of arguments for inserting into the formatted
output.
Returns true on success.
printf(fmt,args)
Equivalent to fprintf(io.stdout,fmt,args);
fprintf(fd,format,...)
Similar to vfprintf, but accepts the format arguments as a
variable number of arguments to the function itself.
printf(fmt,...)
Equivalent to fprintf(io.stdout,fmt,...);
term (libterm.so): io.include('term')
Provides access to raw terminal and tty functions.