Feature #3418 » io.c-putc.patch
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
|