From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,e4984c6f2b7e463 X-Google-Attributes: gid1164f8,public From: john@iastate.edu (John Hascall) Subject: Re: long long in Digital Unix Date: 1997/08/24 Message-ID: <5tojsu$n0a$1@news.iastate.edu>#1/1 X-Deja-AN: 268300246 References: <5tflgf$q84$1@news.iastate.edu> Organization: Iowa State University, Ames, Iowa USA Newsgroups: comp.sys.dec Dan Pop wrote: }john@iastate.edu (John Hascall) writes: }>Dirk Grunwald wrote: }>}I'm porting a program that makes extensive use of 'long long' }>}under Solaris. They intend it to mean 64 bit longs. }>} }>}The Digital Unix 'printf' and and 'scanf' don't grok the '%lld' }>}specification for a long long value. ANyone know of a way }>}around thsi w/o #ifdef'ing all the instances? }> sed 's/%lld/%ld/g' < bogus.c > sane.c ?? }You can go one step further and really sanitize the code: } sed 's/%lld/%ld/g' < bogus.c | sed 's/long long/long/g' > sane.c Watch for: long longvar; though :) John -- John Hascall, Software Engr. Shut up, be happy. The conveniences you ISU Computation Center demanded are now mandatory. -Jello Biafra mailto:john@iastate.edu http://www.cc.iastate.edu/staff/systems/john/welcome.html <-- the usual crud