Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
read_rawresource(3)		  Arcan Lua API 	     read_rawresource(3)

NAME
     read_rawresource  -  Read a line from the globally shared raw resource han-
     dle.

SYNOPSIS
     line
     read_rawresource()

NOTES
     1	    Each "line" is constrained to a maximum of 4096 characters.

     2	    Leading and trailing whitespace is removed.

EXAMPLE
     function read_rawresource0()
	   zap_resource("test.txt");
	   open_rawresource("test.txt");
	   write_rawresource("linea");
	   close_rawresource();
	   open_rawresource("test.txt");
	   local line = read_rawresource();
	   close_rawresource();
	   if (line == "linea") then
		 warning("resource test OK");
	   else
		 warning("resource test failed");
	   end
     end

SEE ALSO:
     open_rawresource(3) write_rawresource(3) close_rawresource(3)

resource			   August 2026		     read_rawresource(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=read_rawresource&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help