On Tuesday 11 October 2005 22:31, Mark Hamblin wrote: > > From: Felix Oxley <lkml@xxxxxxxxx> > > Also, I have seen a lot of: const char *foo = ""; > > There would be no point in declaring a constant empty string so it must > > be given a new value elsewhere in the code. > > Again, the characters are empty, but not the pointer, so the pointer may be > assigned to a different character string. > I think I am getting it! But is there any point in declaring const char *foo = ""; isn't this equivalent to: char *foo; ?? thanks, Felix -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/