Changeset 3142
- Timestamp:
- Feb 5, 2005, 6:56:22 PM (21 years ago)
- Location:
- trunk/Ohana/src/opihi
- Files:
-
- 2 edited
-
include/dvomath.h (modified) (1 diff)
-
lib.shell/variable.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/include/dvomath.h
r2843 r3142 84 84 void InitVariables PROTO((void)); 85 85 void ListVariables PROTO((void)); 86 float get_variable_default PROTO((char *name, float dvalue)); 86 87 87 88 /* vector handling */ -
trunk/Ohana/src/opihi/lib.shell/variable.c
r2598 r3142 171 171 } 172 172 173 float get_variable_default (char *name, float dvalue) { 174 175 char *value; 176 float fvalue; 177 178 value = get_variable (name); 179 if (value == NULL) { 180 return (dvalue); 181 } 182 fvalue = atof (value); 183 return (fvalue); 184 } 185 173 186 double get_double_variable (char *name) { 174 187
Note:
See TracChangeset
for help on using the changeset viewer.
