From: David Wild <dawild@symix.com>
Subject: _printf_ problem
Date: Tue, 06 Aug 96 10:00:00 EDT [thread overview]
Message-ID: <1997e0b3968cd10c53052c4d23541a62.axp-list@archive.invalid> (raw)
I was trying to port a program to my Noname and I kept getting a run time
memory violation error (it compiled fine). I have successfully complied
and ran this on my Intel Linux and Sun Sparc Solaris with no problems.
I finally tracked the problem down to this
time (&t);
printf ("%s\n ", ctime (&t) + 4);
The "+ 4" should move pointer so the output is looks like "Aug 6 08:43:16"
instead of
"Tue Aug 6 08:43:16". Even though it compiles fine it will produce a
memory violation when it gets run. I have never seen this happen on any
other platform.
Does anybody have a clue as to why this is happening.
Dave
"I can fix or break anything; it's leaving stuff alone that I have problems
with..."
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
next reply other threads:[~1996-08-06 14:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-06 14:00 David Wild [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-08-06 15:06 _printf_ problem David Mosberger-Tang
1996-08-06 15:25 David Wild
[not found] <32075000@msmailgtwy.nvl.symix.com>
1996-08-06 23:37 ` Richard Henderson
1996-08-07 12:16 David Wild
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox