Finished StateDataUtility, Started HashUtility
+- HashUtiltity.c +- StateDataUtility.c
This commit is contained in:
parent
6969f405e3
commit
c1e9dd47db
2 changed files with 30 additions and 3 deletions
|
|
@ -75,7 +75,7 @@ Dependencies: sprintf, or other options
|
|||
void stateDataToString( char *outStr, const StateDataType state )
|
||||
{
|
||||
// get the data out using sprintf
|
||||
sprintf(outStr, "%s, Avg: %0.2f, Low: %0.2f, High: %0.2f,", state.name,
|
||||
sprintf(outStr, "%s, Avg: %0.2f, Low: %0.2f, High: %0.2f", state.name,
|
||||
state.averageTemp, state.lowestTemp, state.highestTemp);
|
||||
// no return, void.
|
||||
}
|
||||
|
|
@ -93,5 +93,11 @@ Dependencies: privateCopyString
|
|||
*/
|
||||
void setEmptyDataNode( StateDataType *node )
|
||||
{
|
||||
// fill the node with blank data.
|
||||
privateCopyString(node->name, "---");
|
||||
node->averageTemp = 0;
|
||||
node->highestTemp = 0;
|
||||
node->lowestTemp = 0;
|
||||
node->inUse = false;
|
||||
// no return, void.
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue