Problem in <Beginning Linux Program >
Sir,
I have a doubt in chapter 07 in 'Beginning linux programmming'.
At the end of the chapter there is a small CD database application written using NDBM library.
In search_cdc_entry() function found in cd_access.c, it is explicitly_mentioned that local_key_datum variable needs to be static.
Why should it be declared static?
Only GDBM and DBM have such conditions. I checked out the man pages.
I tried it making automatic, and it worked out well :)
Thank you.
|