Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Aug 2002 13:11:08 -0700 (PDT)
From:      Jens Schweikhardt <schweikh@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/stdio vfprintf.c
Message-ID:  <200208272011.g7RKB8BQ087105@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
schweikh    2002/08/27 13:11:08 PDT

  Modified files:
    lib/libc/stdio       vfprintf.c 
  Log:
  Print a '-' sign for negative zero. Tested with
  
          #include <stdio.h>
          int main(void)
          {
                  printf("%+f\n", -0.0);
                  printf("%+f\n", +0.0);
                  printf("%+f\n",  0.0);
                  return 0;
          }
  
  to output
  -0.000000
  +0.000000
  +0.000000
  
  PR:             bin/41823
  Submitted by:   GOTO Kentaro <gotoken@notwork.org>
  Liked by:       bde
  MFC after:      3 weeks
  
  Revision  Changes    Path
  1.44      +2 -7      src/lib/libc/stdio/vfprintf.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208272011.g7RKB8BQ087105>