Article View: cs.forum
Article #1Re: Help: a very segmentation fault!
From: Fan.. ... ...
Date: Thu, 11 Apr 1996 10:44
Date: Thu, 11 Apr 1996 10:44
18 lines
954 bytes
954 bytes
I'm a good man (mfchan@cs.cuhk.hk) wrote:
> This is really the most strange thing I come across in C programming.
> main()
> {
> char block[82];
> fp2 = fopen("fool", "r+b");
> writeblock(fp2, 0, OVERFILE, block);
> }
> Need your help. Million Thks!
I've tried the program... That's okay... except some syntax error...
One more thing... What is your platform?? There's no "r+b" mode for
fopen on unix systems... Default mode is binary for all files.
Ah Fan...
Technical Details
Message-ID:
<4kinqm$hnt@eng_ser1.erg.cuhk.hk>Path:
arc1-ca.pugleaf.net!news.erg.cuhk.hk!khtsangReferences:
<4ki7gu$bgc@eng_ser1.erg.cuhk.hk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.erg.cuhk.hk!khtsang From: khtsang@cs.cuhk.hk (Fan.. ... ...) Newsgroups: cs.forum,cuhk.se.3420,comp.lang.c Subject: Re: Help: a very segmentation fault! Followup-To: cs.forum,cuhk.se.3420,comp.lang.c Date: 11 Apr 1996 10:44:38 GMT Organization: Engineering Faculty CUHK Message-ID: <4kinqm$hnt@eng_ser1.erg.cuhk.hk> References: <4ki7gu$bgc@eng_ser1.erg.cuhk.hk> NNTP-Posting-Host: sun29.cs.cuhk.hk X-Newsreader: TIN [version 1.2 PL2]