Article View: gnu.gcc.help
Article #46526Problem with djgpp and string pointers
From: David L Evens
Date: Sat, 12 Nov 1994 03:08
Date: Sat, 12 Nov 1994 03:08
22 lines
1997 bytes
1997 bytes
I've got a program that is corrupting a global string pointer when it
calls a function that uses it. The function is in a seperate file from
the call. I adjusted it so that the call went through a dummy function,
and it didn't corrupt at the dummy function, so the file's externals are
declared correctly. As well, the function doesn't corupt the string, and
appears not to damage the pointer either. It appears to simply not
correctly access the pointer. Any thoughts on how ti fix this?
--
* N E W I M P R O O V E D . S I G *
w i t h
* W E D N E S D A Y S P A C I N G * ( t m )
-----------------+------------------------------------------------------------
'Trial by stone.'| The aggreagate inteeligence on this planet
'Trial by stone!'| is a constant. The population, however,
'Trial By Stone!'| is growing.
'TRIAL BY STONE!'|
-----------------+------------------------------------------------------------
"O K , s o h e ' s n o t t e r r i b l y f e a r s o m .
B u t h e c e r t a i n l y c a u g h t u s b y
s u r p r i s e !"
------------------------------------------------------------------------------
Technical Details
Message-ID:
<3a1bjb$4cq@nermal.cs.uoguelph.ca>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!netnews.upenn.edu!news.cc.swarthmore.edu!psuvax1!uwm.edu!news.alpha.net!news.mathworks.com!udel!gatech!howland.reston.ans.net!torn!nermal.cs.uoguelph.ca!gadwall.cs.uoguelph.ca!devensShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,f01e68a0d4dfda21,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-11-11 19:08:27 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!netnews.upenn.edu!news.cc.swarthmore.edu!psuvax1!uwm.edu!news.alpha.net!news.mathworks.com!udel!gatech!howland.reston.ans.net!torn!nermal.cs.uoguelph.ca!gadwall.cs.uoguelph.ca!devens From: devens@uoguelph.ca (David L Evens) Newsgroups: gnu.gcc.help Subject: Problem with djgpp and string pointers Date: 12 Nov 1994 03:08:27 GMT Organization: University of Guelph Lines: 22 Message-ID: <3a1bjb$4cq@nermal.cs.uoguelph.ca> NNTP-Posting-Host: gadwall.cs.uoguelph.ca X-Newsreader: TIN [version 1.2 PL2]