call to revolt

Roy Mongiovi roy at prism.gatech.EDU
Thu Jun 27 01:07:38 AEST 1991


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 at prism.gatech.edu



More information about the Comp.std.c mailing list