Re: Help with functions like asprintf()

2001-11-15 Thread Daniel Barker
definitely recommend running any portable C program through SPARC Solaris dbx with the above checks before release, if a suitable computer is to hand. Of course, use lclint and/or other tests as well. -- Daniel Barker

Re: NEWBIE - structs containing pointers

2001-11-26 Thread Daniel Barker
One very dangerous thing about your code is you have an unqualified char * pointing to a string literal. String literals must never be modified. so it would be better to declare the struct member as const char *Foo; or alternatively, leave it un-const but have it point to the start of a normal