[Plugins-writers] converting hex to dec

From: dave@private
Date: Sat Mar 13 2004 - 15:17:47 PST

  • Next message: David Kyger: "Re: [Plugins-writers] converting hex to dec"

    I'm pulling values from specific places in a hex string, such as:
    
    mystring = '006f004e6573737573';
    
    myport = mystring[0] + mystring[1] + mystring[2] + mystring[3];
    
    
    Is there a function available to convert the value of "myport" to its decimal equivalent?
    
    thanks,
    -dave
    
    
    _______________________________________________
    Plugins-writers mailing list
    Plugins-writers@private
    http://mail.nessus.org/mailman/listinfo/plugins-writers
    



    This archive was generated by hypermail 2b30 : Sat Mar 13 2004 - 14:39:10 PST