Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: notesfiles
Path: utzoo!linus!decvax!decwrl!sun!qubix!ios!oliveb!hplabs!hp-pcd!uoregon!bill
From: bill@uoregon.UUCP (bill)
Newsgroups: net.lang.c
Subject: pointer <==> *pointer ??
Message-ID: <2400001@uoregon.UUCP>
Date: Fri, 5-Oct-84 19:31:00 EDT
Article-I.D.: uoregon.2400001
Posted: Fri Oct  5 19:31:00 1984
Date-Received: Sun, 7-Oct-84 22:09:08 EDT
Organization: Univ of Oregon - Eugene, OR
Lines: 49
Nf-ID: #N:uoregon:2400001:000:711
Nf-From: uoregon!bill    Oct  5 15:31:00 1984


[this line intentionally left blank]

For those who are amused by C quirks:

While attempting to fix a program bug, I changed the code from 
arragement A to arrangement B (below).

--- A ---

char strings[SIZE1][SIZE2];

teststr(str)
char *str;
{
	register char (*b)[SIZE2] = strings;

	while (b < &strings[SIZE1]) {
		if (strcmp(str, b) == 0)
			break;
		b++;
	.
	.
	.
}

--- B ---

char strings[SIZE1][SIZE2];

teststr(str)
char *str;
{
	register char (*b)[SIZE2] = strings;

	while (b < &strings[SIZE1]) {
		if (strcmp(str, *b) == 0)
			break;
		b++;
	.
	.
	.
}

The result, of course, is that nothing changes.

	Randy Goodall, Perfect Software, Inc. (curtesy bill)

	{tektronix,hpcvra,hp-pcd}!uoregon!bill