Project

General

Profile

Feature #3418 » io.c-putc.patch

runpaint (Run Paint Run Run), 06/10/2010 07:15 AM

View differences:

ext/Setup
#syslog
#tk
#win32ole
#zlib
zlib
io.c
* call-seq:
* ios.putc(obj) -> obj
*
* If <i>obj</i> is <code>Numeric</code>, write the character whose
* code is <i>obj</i>, otherwise write the first character of the
* string representation of <i>obj</i> to <em>ios</em>.
* If <i>obj</i> is <code>Numeric</code>, write the character whose code is
* the least-significant byte of <i>obj</i>, otherwise write the first byte
* of the string representation of <i>obj</i> to <em>ios</em>. Note: This
* method is not safe for use with multi-byte characters as it will truncate
* them.
*
* $stdout.putc "A"
* $stdout.putc 65
* $stdout.putc 353
* $stdout.putc "\u1234"
*
* <em>produces:</em>
*
* AA
* AAA\xE1
*/
static VALUE
......
* Equivalent to:
*
* $stdout.putc(int)
*
* Refer to the documentation for IO#putc for important information regarding
* multi-byte characters.
*/
static VALUE
(1-1/2)