SilverScreen Solid Modeler

printer_send

printer_send

Previous topic Next topic  

printer_send

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

int printer_send ( char *data, int count )

 

char *data;       // address of buffer containing printer data

int   count;      // data size value

 

 




Synopsis

#include "silver.h"

 

The printer_send function is used to send data to a printer port which has been opened via printer_open . count is the number of bytes of data to send, if positive. If negative, then data must be point to a null-terminated string, and the entire string is sent.

 

 

Parameters

data is the address of a buffer containing the data to send to the printer. count is an integer specifying the number of bytes at data to send, if positive, or if negative, specifying that data is a null-terminated string whose length determines the number of bytes to send.

 

 

Return Value

printer_send returns 1 if successful, or 0 if not.

 

 

See Also

printer_open , printer_close