API
This commit is contained in:
parent
f98781c33f
commit
6aabbf77c3
5
DOCS.md
5
DOCS.md
@ -72,7 +72,7 @@ vipre-cryptor ИМЯ_ФАЙЛА_С_КЛЮЧОМ.sig --user-data ИМЯ_ПОЛЬ
|
|||||||
## API
|
## API
|
||||||
У библиотеки есть **API**:
|
У библиотеки есть **API**:
|
||||||
```c
|
```c
|
||||||
/* Пример */
|
/* Пример API */
|
||||||
#include "vipre-manager.h"
|
#include "vipre-manager.h"
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
@ -81,5 +81,6 @@ int main(void) {
|
|||||||
__create_user("api_example_key.sig", "api_example_user.bin", "example.txt");
|
__create_user("api_example_key.sig", "api_example_user.bin", "example.txt");
|
||||||
__read_user("api_example_key.sig", "api_example_user.bin", "example_out.txt");
|
__read_user("api_example_key.sig", "api_example_user.bin", "example_out.txt");
|
||||||
__api_detach();
|
__api_detach();
|
||||||
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
@ -7,4 +7,5 @@ int main(void) {
|
|||||||
__create_user("api_example_key.sig", "api_example_user.bin", "example.txt");
|
__create_user("api_example_key.sig", "api_example_user.bin", "example.txt");
|
||||||
__read_user("api_example_key.sig", "api_example_user.bin", "example_out.txt");
|
__read_user("api_example_key.sig", "api_example_user.bin", "example_out.txt");
|
||||||
__api_detach();
|
__api_detach();
|
||||||
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user