libmobi
C library for handling MOBI format ebook documents
Macros | Functions | Variables
mobidrm.c File Reference

mobidrm More...

#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#include <ctype.h>
#include <errno.h>
#include <mobi.h>
#include "common.h"

Macros

#define VOUCHERS_COUNT_MAX   20
 

Functions

int main (int argc, char *argv[])
 Main. More...
 

Variables

bool decrypt_opt = false
 
bool encrypt_opt = false
 
bool expiry_opt = false
 
char * pid [VOUCHERS_COUNT_MAX]
 
char * serial [VOUCHERS_COUNT_MAX]
 
size_t serial_count = 0
 
size_t pid_count = 0
 
time_t valid_from = -1
 
time_t valid_to = -1
 

Detailed Description

mobidrm

Copyright (c) 2021 Bartek Fabiszewski http://www.fabiszewski.net

Licensed under LGPL, either version 3, or any later. See http://www.gnu.org/licenses/

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Main.

Parameters
[in]argcArguments count
[in]argvArguments array
Returns
SUCCESS (0) or ERROR (1)