Logo Search packages:      
Sourcecode: likewise-open version File versions  Download package

void dictionary_setdouble ( dictionary d,
char *  key,
double  val 
)

Set a key in a dictionary, providing a double.

Parameters:
d Dictionary to update.
key Key to modify or add
val Double value to store (will be stored as a string).
Returns:
void
This helper function calls dictionary_set() with the provided double converted to a string using g.

Parameters:
d Dictionary to update.
key Key to modify or add
val Double value to store (will be stored as a string).
Returns:
void
This helper function calls dictionary_set() with the provided double converted to a string using g.

Definition at line 429 of file dictionary.c.

{
      char  sval[MAXVALSZ];
      sprintf(sval, "%g", val);
      dictionary_set(d, key, sval);
}


Generated by  Doxygen 1.6.0   Back to index