The Scheme Programming Language, 4th Edition by R. Kent Dybvig

The Scheme Programming Language, 4th Edition by R. Kent Dybvig

Author:R. Kent Dybvig
Language: eng
Format: mobi, epub
Tags: scheme
Publisher: scheme.com
Published: 2013-04-04T02:46:13+00:00


; printf and fprintf differ only in that fprintf passes its

; port argument to dofmt while printf passes the current output

; port.

(define printf

(lambda (control . args)

(dofmt (current-output-port) control args)))

(define fprintf

(lambda (p control . args)

(dofmt p control args))))

Exercise 12.6.1

Add error checking to the code for invalid port arguments (fprintf), invalid tilde escapes, and extra or missing arguments.

Exercise 12.6.2

Using the optional radix argument to number->string, augment printf and fprintf with support for the following new format directives:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.