You've discovered the difference between a character, and a pointer to a character. The pointer is a memory address (4 bytes on 32-bit x86) that can be used to point to other memory.
Since you've declared a char *, it's a safe bet you want a pointer to characters, not a pointer to pointers, so use the first one.
Hi , experts.
I work on Linux station (RedHat 5.7), regular user, but have root password.
%> uname -a
Linux ran1log06 2.6.18-238.1.1.el5 #1 SMP Tue Jan 4 13:32:19 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
%> cat /etc/issue
Red Hat Enterprise Linux Client release 5.7 (Tikanga)
Kernel \r on... (5 Replies)
Whilst creating the function readjust_descr I have stumble across what may be a problem or
something that might just work. I was hoping someone could look at the code below and tell me
if readjust_descr will clear all null pointers from the structure descr_list.
struct descr descr_list =... (6 Replies)