File prod_range.c
FileList > prod_range > src > prod_range.c
Go to the source code of this file
Defines the functionality of a range production, yielding an integer in a given range. More...
#include "prod_range.h"#include "stdlib.h"#include <stdio.h>#include <string.h>#include <pdgl_defs.h>
Public Functions
| Type | Name |
|---|---|
| const char * | prod_range_resolve (const void * config) The resolve function for the range production type. |
| const char * | prod_range_terminate (const void * config) The resolve function for the range production type. |
Detailed Description
Author:
Joe Starr
Public Functions Documentation
function prod_range_resolve
The resolve function for the range production type.
Randomly select an integer between a lower and upper bound. Convert to a string stored in an output buffer for the configured production.
Parameters:
configA configuration of a production.
Returns:
A pointer to the output of the resolution.
function prod_range_terminate
The resolve function for the range production type.
Calls the resolve function.
Parameters:
configA configuration of a production.
Returns:
A pointer to the output of the resolution.
The documentation for this class was generated from the following file source/prod_range/src/prod_range.c