Article View: comp.std.c
Article #3194Re: call to revolt
From: Roy Mongiovi
Date: Wed, 26 Jun 1991 15:07
Date: Wed, 26 Jun 1991 15:07
23 lines
1117 bytes
1117 bytes
Well, while I can think of easy ways to code around it, they involve extra
data movement. I fail to see why the following should be categorically
outlawed:
char *intptr;
intptr = malloc(sizeof(int));
read(fd, intptr, sizeof(int));
*((int *) intptr)++;
.
.
.
Admittedly, I can't think of a really great reason why I might want to
do that, but one of the major things that I like about C is that the
programmer is the boss.
--
Roy J. Mongiovi Systems Support Specialist Office of Computing Services
Georgia Institute of Technology Atlanta, Georgia 30332-0275 (404) 894-4660
uucp: ...!{allegra,amd,hplabs,ut-ngp}!gatech!prism!roy
ARPA: roy@prism.gatech.edu
Technical Details
Message-ID:
<31822@hydra.gatech.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!ncar!gatech!prism!royReferences:
<rabson.677868220@physics.ubc.ca> <992@baby.and.nl> <4363@uc.msc.umn.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!ncar!gatech!prism!roy From: roy@prism.gatech.EDU (Roy Mongiovi) Newsgroups: comp.std.c Subject: Re: call to revolt Message-ID: <31822@hydra.gatech.EDU> Date: 26 Jun 91 15:07:38 GMT References: <rabson.677868220@physics.ubc.ca> <992@baby.and.nl> <4363@uc.msc.umn.edu> Organization: Georgia Institute of Technology Lines: 23