• allegro5.a5_display
  • allegro5.a5_file
  • allegro5.a5_font
  • allegro5.a5_image
  • allegro5.a5_joystick
  • allegro5.a5_main
  • allegro5.a5_misc
  • allegro5.a5_opengl
  • allegro5.a5_shader
  • allegro5.a5_sound
  • allegro5.a5_thread
  • allegro5.a5_triangles
  • animation
  • array
  • atlas
  • buffer
  • color
  • common
  • csg.csg_aabb
  • csg.csg
  • csg.csg_octree
  • csg.csg_shapes
  • csg.csg_test
  • data
  • display
  • exception
  • file
  • font
  • glsl
  • grid
  • hash
  • image
  • image_op
  • index
  • ini
  • isometric
  • joystick
  • keyboard
  • land
  • layer
  • list
  • log
  • main
  • map
  • mem
  • mouse
  • net
  • noise
  • openglutil
  • perlin
  • pixelmask
  • plasma
  • pool
  • protobuf
  • queue
  • random
  • runner
  • shader
  • sound
  • sprite
  • thread
  • tilegrid
  • triangles
  • util2d
  • util3d
  • util
  • view
  • voronoi
  • widget.base
  • widget.board
  • widget.book
  • widget.box
  • widget.button
  • widget.checkbox
  • widget.container
  • widget.edit
  • widget.gul
  • widget.hbox
  • widget.layout
  • widget
  • widget.menu
  • widget.mover
  • widget.panel
  • widget.scrollbar
  • widget.scrolling
  • widget.sizer
  • widget.slider
  • widget.spin
  • widget.text
  • widget.theme
  • widget.vbox
  • widget.widget_list
  • yaml.external
  • yaml.internal
  • yaml
  • yaml.xml

land.file

LandFile

land_file_new

Parameters: char const * path, char const * mode

Returns: LandFile*

land_file_destroy

Parameters: LandFile * self

land_file_read

Parameters: LandFile * self, char * buffer, int bytes

Returns: int

land_file_write

Parameters: LandFile * self, char const * buffer, int bytes

Returns: int

land_file_add_to_buffer

Parameters: LandFile * self, LandBuffer * buf

land_file_lines

Parameters: LandFile * self

Returns: LandArray*

Return the file contents as an array of strings. Once done with the strings you can destroy them (and the array) with:

land_array_destroy_with_strings

land_file_print

Parameters: LandFile * self, char const * f, …

land_file_printnn

Parameters: LandFile * self, char const * f, …

land_file_fputs

Parameters: LandFile * self, char const * string

Returns: int

land_file_getc

Parameters: LandFile * self

Returns: int

land_file_putc

Parameters: LandFile * self, int x

land_file_ungetc

Parameters: LandFile * self, int c

land_file_eof

Parameters: LandFile * self

Returns: bool

land_file_skip

Parameters: LandFile * self, int n

land_file_get32le

Parameters: LandFile * self

Returns: uint32_t

land_file_put32le

Parameters: LandFile * self, uint32_t x

land_file_get16le

Parameters: LandFile * self

Returns: uint16_t

land_file_get32be

Parameters: LandFile * self

Returns: uint32_t

land_file_get16be

Parameters: LandFile * self

Returns: uint16_t

land_file_is_dir

Parameters: char const * name

Returns: bool

land_file_exists

Parameters: char const * name

Returns: bool

land_get_save_file

Parameters: char const * appname, char const * name

Returns: char*

The returned string is owned by the caller and needs to be freed with land_free.

land_get_current_directory

no parameters

Returns: char*

land_get_data_path

no parameters

Returns: char*

land_path_with_prefix

Parameters: char const * name

Returns: char*

land_set_prefix

Parameters: char const * path

land_find_data_prefix

Parameters: char const * path

land_replace_filename

Parameters: char const * path, char const * name

Returns: char*

land_file_remove

Parameters: char const * path

Returns: bool

land_file_time

Parameters: char const * path

Returns: int64_t

land_user_data_path

Parameters: char const * app, char const * path

Returns: char*


Generated: Thu 27 Feb 2020 10:49:37 PM EST