Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 582 Bytes

File metadata and controls

22 lines (13 loc) · 582 Bytes

LevelDB C example

This is a simple example to demonstrate how you use LevelDB with C.

Install

Install LevelDB either by yourself or with a package manager. I recommend Homebrew for OS X. Please note that LevelDB requires Snappy.

Compile

Compile with GCC:

gcc -Wall leveldb_example.c -lleveldb

License

MIT