Search code examples
cgdbm

Get the count of lines in a gdbm file


Is there any specific function or any way by which the number of lines in a GDBM file can be counted?Otherwise, I want to retrieve all the lines in a GDBM file at once(Iam able to retrieve the key value pairs using gdbm_fetch() but only one at a time.


Solution

  • I got the solution to the above problem.

    Now I am able to retrieve all the key value pairs.

    Solution :here