evo-crypter
 
Loading...
Searching...
No Matches
utils.h File Reference

Utility functions for the config module. More...

#include "mod.h"

Go to the source code of this file.

Functions

void print_usage (const char *program_name)
 Prints the program's usage information to the console.
 
bool is_valid_generations (const char *generations)
 Validates the generation string.
 

Detailed Description

Utility functions for the config module.

Function Documentation

◆ is_valid_generations()

bool is_valid_generations ( const char *  generations)

Validates the generation string.

Checks if the provided generation string only contains valid characters: 0-9, a-z, #, and *.

Parameters
generationsThe generation string to validate.
Returns
true if the generation string is valid, false otherwise.

◆ print_usage()

void print_usage ( const char *  program_name)

Prints the program's usage information to the console.

Parameters
program_nameThe name of the program executable.