NDBM and ME

Guest Account guest at geech.ai.mit.edu
Sat May 11 02:49:44 AEST 1991


I read the manual on ndbm but I still have a question.  I want to
store structs and the structs have pointers to variable length
strings.  If I store the struct using the data.dptr how will the
pointers remain valid after closing the database file?  I don't really
care how I do it, I just want to be able to use some kind of database
management package on a struct like
	struct system_entry {
		char *system_name;
		char *telephone_number;
		char *login_name;
		char *password;
	}

I won't know how long the strings are at compile time.

---GOOFY



More information about the Comp.unix.programmer mailing list