| 719 | /***********************************************************************/ |
| 720 | template <class TYPE> |
| 721 | bool TYPVAL<TYPE>::SetValue_char(const char *p, int n) |
| 722 | { |
| 723 | bool rc, minus; |
| 724 | ulonglong maxval = MaxVal(); |
| 725 | ulonglong val = CharToNumber(p, n, maxval, Unsigned, &minus, &rc); |
| 726 | |
| 727 | if (minus && val < maxval) |
| 728 | Tval = (TYPE)(-(signed)val); |
| 729 | else |
| 730 | Tval = (TYPE)val; |
| 731 | |
| 732 | if (trace(2)) { |
| 733 | char buf[64]; |
| 734 | htrc(strcat(strcat(strcpy(buf, " setting %s to: "), Fmt), "\n"), |
| 735 | GetTypeName(Type), Tval); |
| 736 | } // endif trace |
| 737 | |
| 738 | Null = false; |
| 739 | return rc; |
| 740 | } // end of SetValue |
| 741 | |
| 742 | template <> |
| 743 | bool TYPVAL<double>::SetValue_char(const char *p, int n) |
no test coverage detected