Created
August 1, 2013 12:46
-
-
Save SebastienElet/6131012 to your computer and use it in GitHub Desktop.
Tdb patch file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- tdbtool.c 2008-01-20 22:26:37.000000000 +0100 | |
+++ tdbtool.c 2008-01-20 22:27:45.000000000 +0100 | |
@@ -169,23 +169,21 @@ | |
static void help(void) | |
{ | |
- printf(" | |
-tdbtool: | |
- create dbname : create a database | |
- open dbname : open an existing database | |
- erase : erase the database | |
- dump dumpname : dump the database as strings | |
- insert key data : insert a record | |
- store key data : store a record (replace) | |
- show key : show a record by key | |
- delete key : delete a record by key | |
- list : print the database hash table and freelist | |
- free : print the database freelist | |
- 1 | first : print the first record | |
- n | next : print the next record | |
- q | quit : terminate | |
- \\n : repeat 'next' command | |
-"); | |
+printf("tdbtool: "); | |
+printf(" create dbname : create a database\n"); | |
+printf(" open dbname : open an existing database\n"); | |
+printf(" erase : erase the database\n"); | |
+printf(" dump dumpname : dump the database as strings\n"); | |
+printf(" insert key data : insert a record\n"); | |
+printf(" store key data : store a record (replace)\n"); | |
+printf(" show key : show a record by key\n"); | |
+printf(" delete key : delete a record by key\n"); | |
+printf(" list : print the database hash table and freelist\n"); | |
+printf(" free : print the database freelist\n"); | |
+printf(" 1 | first : print the first record\n"); | |
+printf(" n | next : print the next record\n"); | |
+printf(" q | quit : terminate\n"); | |
+printf(" \\n : repeat 'next' command\n"); | |
} | |
static void terror(char *why) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment