This is the GitHub repository of the official standard library for the CaffeineC programming language.
import "vyPal/cffc-std/io";
The printf function that is builtin to clang
The sprintf function that is builtin to clang
Same as printf
Same as printf, but adds an additional newline character
Prints prompt and reads user input from command line until a newline character is received (or the 256 character limit is reached)
import "vyPal/cffc-std/rand";
Uses the srand()
function from clang to initialize the random number generator
Generates a random 32-bit integer from min to max (both inclusive)
import "vyPal/cffc-std/strings";
string: *i8
Creates a new instance of the String
class and sets the value of the string
field to s
Returns the length of the string (not counting the null terminator)
Uses the clang atoi()
function to parse an i32
from the instance of the String
class
Uses the clang atof()
function to parse an f32
from the instance of the String
class
Defines the comparison function for equals operator when used on two instances of this class
Defines the function for addition operator when used on two instances of this class
Defines the function for when an instance of this class is requested as a *i8
Same as parseI32()
Same as parseF32()