D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Kernel
/
Filename :
printf-i.ri
back
Copy
U:RDoc::AnyMethod[iI"printf:ETI"Kernel#printf;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"Equivalent to:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"0io.write(sprintf(format_string, *objects)) ;T:@format0o; ; [I")For details on +format_string+, see ;TI"B{Format Specifications}[rdoc-ref:format_specifications.rdoc].;T@o; ; [I"RWith the single argument +format_string+, formats +objects+ into the string, ;TI"1then writes the formatted string to $stdout:;T@o;; [I".printf('%4.4d %10s %2.2f', 24, 24, 24.0) ;T; 0o; ; [I"Output (on $stdout):;T@o;; [I"0024 24 24.00# ;T; 0o; ; [I"QWith arguments +io+ and +format_string+, formats +objects+ into the string, ;TI".then writes the formatted string to +io+:;T@o;; [I"7printf($stderr, '%4.4d %10s %2.2f', 24, 24, 24.0) ;T; 0o; ; [I"Output (on $stderr):;T@o;; [I"#0024 24 24.00# => nil ;T; 0o; ; [I"%With no arguments, does nothing.;T: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"eprintf(format_string, *objects) -> nil printf(io, format_string, *objects) -> nil ;T0[ I"(*args);T@3FI"Kernel;TcRDoc::NormalModule00