diff scripts/strings/hex2dec.m @ 3426:f8dde1807dee

[project @ 2000-01-13 08:40:00 by jwe]
author jwe
date Thu, 13 Jan 2000 08:40:53 +0000
parents 4f40efa995c1
children 2a257be5e488
line wrap: on
line diff
--- a/scripts/strings/hex2dec.m	Thu Jan 13 08:32:16 2000 +0000
+++ b/scripts/strings/hex2dec.m	Thu Jan 13 08:40:53 2000 +0000
@@ -21,7 +21,7 @@
 ## @deftypefn {Function File} {} hex2dec (@var{s})
 ## Return the decimal number corresponding to the hexadecimal number stored
 ## in the string @var{s}.  For example,
-## 
+##
 ## @example
 ## hex2dec ("12B")
 ##      @result{} 299
@@ -45,14 +45,14 @@
     for i = 1:nr
       s = h (i, :);
       if (isxdigit (s))
-	tmp = sscanf (s, "%x");
-	if (isempty (tmp))
-	  error ("hex2dec: invalid conversion");
-	else
-	  d (i) = tmp;
-	endif
+        tmp = sscanf (s, "%x");
+        if (isempty (tmp))
+          error ("hex2dec: invalid conversion");
+        else
+          d (i) = tmp;
+        endif
       else
-	error ("hex2dec: argument must be a string of hexadecimal digits");
+        error ("hex2dec: argument must be a string of hexadecimal digits");
       endif
     endfor
   else