-
Notifications
You must be signed in to change notification settings - Fork 0
/
methods.h
36 lines (30 loc) · 1.02 KB
/
methods.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef LIBS_PATTERNS_METHODS_H_INCLUDED
#define LIBS_PATTERNS_METHODS_H_INCLUDED
#include "./structs.h"
/**
* @brief Fills the `arr` field of a pattern structure with a specified value.
*
* @param pPattern A pointer to the pattern structure.
* @param with The value to fill the `arr` field.
*
* @warning This function assumes that `pPattern` has been properly initialized.
*/
void fillPattern(TPattern* pPattern, const char with);
/**
* @brief Prints the `arr` field of a pattern structure by console.
*
* @param pPattern A pointer to the pattern structure.
*
* @warning This function assumes that `pPattern` has been properly initialized.
*/
void printPatternByConsole(TPattern* pPattern);
/**
* @brief Sets the center of a pattern structure.
*
* @param pPattern A pointer to the pattern structure.
*
* @warning This function assumes that `pPattern` has been properly initialized with valid `rows`
* and `cols` field values.
*/
void setPatternCenter(TPattern* pPattern);
#endif // LIBS_PATTERNS_METHODS_H_INCLUDED