[KLUG Programming] substr in C?
Robert G. Brown
programming@kalamazoolinux.org
Tue, 22 Jul 2003 13:55:11 -0400
On Tue, 22 Jul 2003 13:34:49 -0400, Tony Gettig <tony@gettig.net> wrote:
>Gentlemen,
>THANK YOU!
You're Welcome!
>Dropping the * made the difference. I get confused with pointers and strings,
>and their relationship at times, but it is clearer now. An array of pointers
>takes up more space than an array of char.
Common error in C programming. Similarly, your explorations regarding integer
division (which results in INTEGERS, rounded or truncated , I never remember
which 'cuz when I want resiults from division, I want the floating point
answer about 99.99996% of the time! :) are also common misunderstandings.
>Man, I wish I could figure things out with a quick glance before lunch
>like that. :)
Practice and learning the differences, enough to make them second nature.
Regards,
---> RGB <---