Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PChannel::WriteChar ( int  c  )  [inherited]

Write a single character to the channel. This function simply uses the Write() function so all comments on that function also apply.

Note that this asserts if the value is not in the range 0..255.

Returns:
TRUE if the byte was successfully written.

Definition at line 432 of file pchannel.cxx.

References PChannel::Write().

Referenced by PChannel::SendCommandString(), and PTextFile::WriteLine().

{
  PAssert(c >= 0 && c < 256, PInvalidParameter);
  char buf = (char)c;
  return Write(&buf, 1);
}


Generated by  Doxygen 1.6.0   Back to index