unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* [bug #27577] inet-ntop example is missing quotes around "ffff:ffff:..."
@ 2009-10-01 21:34 Scott McPeak
  2009-10-01 22:40 ` Neil Jerram
  0 siblings, 1 reply; 2+ messages in thread
From: Scott McPeak @ 2009-10-01 21:34 UTC (permalink / raw)
  To: Scott McPeak, bug-guile


URL:
  <http://savannah.gnu.org/bugs/?27577>

                 Summary: inet-ntop example is missing quotes around
"ffff:ffff:..."
                 Project: Guile
            Submitted by: smcpeak
            Submitted on: Thu 01 Oct 2009 09:34:53 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

The documentation for inet-ntop:

http://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Network-Address-Conversion.html#index-inet_002dntop-3217

Says:

(inet-ntop AF_INET 2130706433) => "127.0.0.1"
(inet-ntop AF_INET6 (- (expt 2 128) 1)) =>
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff

However, the final value is a string, so should be quoted:

guile> (inet-ntop AF_INET 2130706433)
"127.0.0.1"
guile> (inet-ntop AF_INET6 (- (expt 2 128) 1))
"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27577>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-01 22:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-01 21:34 [bug #27577] inet-ntop example is missing quotes around "ffff:ffff:..." Scott McPeak
2009-10-01 22:40 ` Neil Jerram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).