;; | --------------------------------------------------------------------------- ;; | MI_hx+1 ;; | --------------------------------------------------------------------------- ;; | Function : Accepts a hexadecimal string, increments it by 1 and returns the ;; | result as a hexadecimal string ;; | Argument : 'str' - Hexadecimal String ;; | Return : The decimal integer ;; | Update : August 6, 1998 ;; | e-mail : rakesh.rao@4d-technologies.com ;; | Web : www.4d-technologies.com ;; | --------------------------------------------------------------------------- (defun MI_hx+1 (str / lst) (setq lst (MI_hxlist str)) ;get list of powers of 16 (setq lst (append (list (1+ (car lst))) (cdr lst))) ;pull out 1's, increment, (listhx lst) ;rebuild list and send to ) ;get a hex back