Skip to content
Eric Holk edited this page Oct 14, 2013 · 3 revisions

Core Library

These libraries are included in every Harlan program, providing what is considered essential in any program.

Syntax

Functions


open_outfile :: (str) -> (ptr ofstream)

Arguments:

  • name :: str - The name of the file to open.

Return Value: A file pointer that can be used with close_outfile and as a target for print and println.


close_outfile :: ((ptr ofstream)) -> void)

Arguments:

  • file :: (ptr ofstream) - A file to close. This should have been returned by open_outfile.

Return Value: None.

Graphics

Foreign Function Interface