This repository has been archived on 2026-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
FlippyPass/project/backend/pass.c

23 lines
467 B
C
Raw Permalink Normal View History

2024-08-27 03:12:39 -05:00
// Header
#include "pass.h"
2024-08-27 22:33:59 -05:00
#include <furi.h>
2024-08-27 03:12:39 -05:00
// Constructors
Password* pass_init(char* name, char* user, char* phrase, int folder) {
2024-08-27 03:12:39 -05:00
// Creating a new instance of a password
2024-08-27 22:33:59 -05:00
Password* result = malloc(sizeof(Password));
2024-08-27 03:12:39 -05:00
// Setting data
result->name = name;
result->user = user;
result->phrase = phrase;
result->folder = folder;
// Returning result
return result;
}
// Functions
void pass_free(Password* pass){
2024-08-27 03:12:39 -05:00
free(pass);
}