[KLUG Programming] substr in C?

Robert G. Brown programming@kalamazoolinux.org
Tue, 22 Jul 2003 13:18:22 -0400


On 22 Jul 2003 11:56:01 -0400, Bruce Smith <bruce@armintl.com> wrote:
>> char *strTemp[255];
>
>With only a quick glance before lunch, I'd say lose the star.
>
>char strTemp[255];

*strTemp[255] is an array of 255 pointers, and strTemp+4 will compute a 4
byte jump, since pointres are 4 byte (word length on Intel32 bit).

strTemp[255] is an array of 255 characters, strTemp+1 will be a 1 byte
increment...
							Regards,
							---> RGB <---