CDC.write

Name
CDC.write - write to CDC device.

Description
The CDC.write function attempts to write to the CDC device - usually the USB connected to virtual text terminal. On text files, it expands each LF to a CR/LF.

The Communication Device Class (CDC) is a general-purpose way to enable all types of communications on the Universal Serial Bus (USB). This class makes it possible to connect communication devices such as digital telephones or analog modems, as well as networking devices like Asymmetric Digital Subscriber Line (ADSL, DSL) or Cable modems. While a CDC device enables the implementation of quite complex devices, it can also be used as a very simple method for communication on the USB. For example, a CDC device can appear as a virtual COM port (terminal window), which greatly simplifies application development on the host side.

Syntax
Warning the syntax shown below has not been tested :( int CDC.write(int handle, void *buffer, int nbyte);

The CDC.write function attempts to write nbytes from buffer to the file associated with handle. On text files, it expands each LF to a CR/LF.

The function returns the number of bytes written to the file. A return value of -1 indicates an error, with errno set appropriately.

Example
'''WARNING: The example below is not a working example - it is a place holder. At the time of this writing, no syntax or working example could be found for Pinguino-11 ide.'''