sprintf: anomalous behavior
- From: "Ivan78" <ivano78@xxxxxxxxxxx>
- Date: 15 May 2006 08:59:16 -0700
Hi everybody,
I happened the following thing using sprintf function on different
machine :
on Digital Alpha
s1="PIPPO" and s2="PLUTO"
sprintf(s1, "%s%s", s1,s2) -> s1 is equal PIPPOPLUTO
while on HPUX
s1="PIPPO" and s2="PLUTO"
sprintf(s1, "%s%s", s1,s2) -> s1 is equal PLUTOPLUTO
somebody knows as can i get the same behavior on HPUX to?
thanks all
Ivano
.
- Follow-Ups:
- Re: sprintf: anomalous behavior
- From: Kenneth Brody
- Re: sprintf: anomalous behavior
- From: Flash Gordon
- Re: sprintf: anomalous behavior
- From: pemo
- Re: sprintf: anomalous behavior
- From: Gordon Burditt
- Re: sprintf: anomalous behavior
- Prev by Date: Re: short or int
- Next by Date: Re: switch why?
- Previous by thread: switch why?
- Next by thread: Re: sprintf: anomalous behavior
- Index(es):