English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i.e. formatted printing to a string rather than a file or screen

2006-08-24 15:12:41 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

Thanks Andy T,

It was sprintf just what I needed!

2006-08-24 15:34:59 · update #1

1 answers

Yes but it is not the same function to do it, STDOUT is best not to be messed with, so look for the function that let you pass an output pointer (string, not handle) as its first argument. I usually confuse the stuff in Perl and C, but I think it is sprintf()

If you just want a wholesale redirection of the entire program output pipe it in eval().

2006-08-24 15:22:59 · answer #1 · answered by Andy T 7 · 2 0

fedest.com, questions and answers