Product class implementation.
More...
#include "Product.h"
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
|
| struct | Product |
| | The Product represents a single product with a unique numerical identifier, human-readable name, and integral non-negative quantity. More...
|
| |
Product class implementation.
- Author
- Oliver Dixon
- Date
- 2025-09-06
- Version
- Development
Definition in file Product.c.
◆ product_create()
| struct Product * product_create |
( |
const unsigned int |
id, |
|
|
const char *const |
name, |
|
|
const unsigned int |
quantity |
|
) |
| |
◆ product_delete()
| void product_delete |
( |
struct Product ** |
this | ) |
|
◆ product_file_serialise()
| int product_file_serialise |
( |
const struct Product *const |
this, |
|
|
FILE *const |
buffer |
|
) |
| |
◆ product_modify_quantity()
| bool product_modify_quantity |
( |
struct Product * |
this, |
|
|
const int |
modifier |
|
) |
| |
◆ product_ptr_compare()
| int product_ptr_compare |
( |
const void *const |
product_lhs, |
|
|
const void *const |
product_rhs |
|
) |
| |
◆ product_report_serialise()
| int product_report_serialise |
( |
const struct Product *const |
this, |
|
|
FILE *const |
buffer |
|
) |
| |