int stream_write ( string data);

Started by chinmay.sahoo, 06-08-2016, 07:32:24

Previous topic - Next topic

chinmay.sahooTopic starter

The stream_write method is called when fputs() or fwrite() is called on this stream. You should store as much of the data as possible, and return the number of bytes that actually were stored in the container. If no data could be stored, you should return 0. You should also take care of updating the position pointer.