Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #13872

Re: Using cout to print hex values; surely you can't be serious

From scott@slp53.sl.home (Scott Lurndal)
Subject Re: Using cout to print hex values; surely you can't be serious
Newsgroups comp.lang.c++
References (1 earlier) <Xns9FF44420CAC16myfirstnameosapriee@216.196.109.131> <9phagoFom1U7@mid.individual.net> <0684f226-3bfc-46a7-8581-ce345da2be4e@b18g2000vbz.googlegroups.com> <9phfbvF8slU1@mid.individual.net> <095c9d03-a205-42c8-b4c4-f6f1964ec745@y10g2000vbn.googlegroups.com>
Organization
Organization UseNetServer - www.usenetserver.com
Message-ID <e2TYq.115370$241.72809@news.usenetserver.com> (permalink)
Date 2012-02-09 17:06 +0000

Show all headers | View raw


gwowen <gwowen@gmail.com> writes:
>On Feb 9, 8:44=A0am, Ian Collins <ian-n...@hotmail.com> wrote:
>> Don't forget the the format string was "%02X"..
>
>Don't forget that width specifiers are a minumum.  (Another talented,
>concientious, experienced C-user, and *boom* another potential
>sprintf() overflow bug).
>
>sprintf() is horrid.

Which is why snprintf(3c) is preferred.  

scott

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Using cout to print hex values; surely you can't be serious Chris Stankevitz <chrisstankevitz@gmail.com> - 2012-02-07 21:16 -0800
  Re: Using cout to print hex values; surely you can't be serious gwowen <gwowen@gmail.com> - 2012-02-08 03:54 -0800
  Re: Using cout to print hex values; surely you can't be serious Victor Bazarov <v.bazarov@comcast.invalid> - 2012-02-08 08:15 -0500
    Re: Using cout to print hex values; surely you can't be serious gwowen <gwowen@gmail.com> - 2012-02-08 06:49 -0800
      Re: Using cout to print hex values; surely you can't be serious "io_x" <a@b.c.invalid> - 2012-02-19 18:24 +0100
        Re: Using cout to print hex values; surely you can't be serious 88888 Dihedral <dihedral88888@googlemail.com> - 2012-02-20 03:19 -0800
          Re: Using cout to print hex values; surely you can't be serious 88888 Dihedral <dihedral88888@googlemail.com> - 2012-02-21 03:08 -0800
    Re: Using cout to print hex values; surely you can't be serious Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-02-08 15:20 +0000
  Re: Using cout to print hex values; surely you can't be serious Leigh Johnston <leigh@i42.co.uk> - 2012-02-08 14:20 +0000
  Re: Using cout to print hex values; surely you can't be serious Paavo Helde <myfirstname@osa.pri.ee> - 2012-02-09 00:41 -0600
    Re: Using cout to print hex values; surely you can't be serious Ian Collins <ian-news@hotmail.com> - 2012-02-09 20:22 +1300
      Re: Using cout to print hex values; surely you can't be serious gwowen <gwowen@gmail.com> - 2012-02-09 00:16 -0800
        Re: Using cout to print hex values; surely you can't be serious Ian Collins <ian-news@hotmail.com> - 2012-02-09 21:44 +1300
          Re: Using cout to print hex values; surely you can't be serious Juha Nieminen <nospam@thanks.invalid> - 2012-02-09 10:36 +0000
          Re: Using cout to print hex values; surely you can't be serious gwowen <gwowen@gmail.com> - 2012-02-09 03:56 -0800
            Re: Using cout to print hex values; surely you can't be serious scott@slp53.sl.home (Scott Lurndal) - 2012-02-09 17:06 +0000
              Re: Using cout to print hex values; surely you can't be serious Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-02-12 15:59 +0000
    Re: Using cout to print hex values; surely you can't be serious scott@slp53.sl.home (Scott Lurndal) - 2012-02-09 17:04 +0000

csiph-web