[78] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: typedef krb5_principal doesn't make sense

jtkohl@ATHENA.MIT.EDU (jtkohl@ATHENA.MIT.EDU)
Thu Jan 18 09:25:49 1990

It boils down to whether you want to have an array of pointers to strings,
or an array of strings (with each string element in successive memory
locations).
The first kind makes it easy to non-destructively swap in & out
elements; the second kind conserves allocated storage a bit, but makes
inserting/deleting elements "hard".

If you use the second kind, how do you find the end of the array?  Where
is the length of the array stored? [remember that 0 length elements are
valid]

home help back first fref pref prev next nref lref last post