Created
August 11, 2018 19:42
-
-
Save sangfansh/496ed4da9dafe89ef340fa714f37bdd6 to your computer and use it in GitHub Desktop.
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
#define MAX_ITEMS 100 | |
#define MAX_ITEM_SIZE 100 | |
// item | |
struct Item { | |
char title[MAX_ITEM_SIZE]; | |
char username[MAX_ITEM_SIZE]; | |
char password[MAX_ITEM_SIZE]; | |
}; | |
typedef struct Item item_t; | |
// wallet | |
struct Wallet { | |
item_t items[MAX_ITEMS]; | |
size_t size; | |
char master_password[MAX_ITEM_SIZE]; | |
}; | |
typedef struct Wallet wallet_t; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment