home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19423 < prev    next >
Encoding:
Text File  |  1993-01-08  |  941 b   |  25 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!news.uiowa.edu!eng.uiowa.edu!hari
  3. From: hari@blackmail.eng.uiowa.edu (Hari Vattikota)
  4. Subject: Re: Question on malloc
  5. Message-ID: <1993Jan8.155412.29449@news.uiowa.edu>
  6. Sender: hari@blackmail (Hari Vattikota)
  7. Date: Fri, 8 Jan 1993 15:54:12 GMT
  8. References: <1993Jan8.010231.14608@news.uiowa.edu> <C0JAv0.3AD@vti.com>
  9. Nntp-Posting-Host: blackmail.eng.uiowa.edu
  10. Organization: Department of Elect. and Comp. Engr., University of Iowa, USA.
  11. Lines: 12
  12.  
  13. Continuation of article 107022
  14.  
  15. The command for compilation is "cc -g main.c trans.c" where main.c and trans.c
  16. are the two files.I am including the header files stdio.h and fcntl.h.
  17. Also no sbrk() is used in my code.I have these header files in declare.h file
  18. and I include the declare.h file in both of my files.
  19.  
  20. When I try the same program on a Sun machine the error is of a different kind.
  21. One of the global variable value gets corrupted.
  22.  
  23. Hari.
  24.  
  25.