| Syntax |
n = %WRITE( file.descriptor, variable, size )
|
| Category |
BASIC
|
| Type |
C Function
|
| Description |
writes the number of bytes desinated by "size" from "variable" to the file specified by "file.descriptor" returned by a previous call to "%open()", "%creat()" or "dup()".
This function returns the number of bytes actually written. If the length of variable is less than size, the content of the string written is undefined, as is usual in C. No data translation occurs.
|
| Options |
|
| See Also |
%WHEX %CREAT %DUP c function CFUNCTION %TTYNAME %OPEN %LSEEK (D3/Unix)
|
| Example |
n=len(item)
if %write(fd,item,n)<n then crt "write error"
|
| Warnings |
|
| Compatibility |
D3/Unix
|