Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Request help -- odd sprintf, fprintf issue Date: Mon, 29 Aug 2016 14:30:33 -0700 Organization: None to speak of Lines: 19 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="1903"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19s99hsb7ji0BQcNSglpsb9" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:qM71PV6H05JV5vkt4ACgBGK8UEs= sha1:muJgXDv5Jy4eIX/aorowW5boPp8= Xref: csiph.com comp.lang.c:92898 Ike Naar writes: > On 2016-08-29, Keith Thompson wrote: >> View the output file with some tool that shows its contents >> unambiguously, such as `cat -A` or `od -c`. > > I've noticed that not all versions of 'cat' endorse the '-A' option, > for a 'cat' that doesn't, try 'cat -vet'. Quite right. I think `cat -A` is a GNU coreutils feature, so it will be available on most Linux-based systems. I think the BSD-based `cat` on Mac OSX doesn't support it. `hd` or `hexdump` might also be a good choice (if available). -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"