Convert String to integer ( hh/mm/ss )

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • justin146s
    New Member
    • Jul 2014
    • 2

    Convert String to integer ( hh/mm/ss )

    Hi i need to convert below value char *time="00.00.05 "
    i need to convert this to hh/mm/ss .... if anyone tell the logic pls....
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    00.00.05 is not a char value and hh/mm/ss is not an integer.

    What are you trying to do?

    Comment

    • divideby0
      New Member
      • May 2012
      • 131

      #3
      I think the op is wanting to parse the string to extract the integer values. if so, sscanf should work.

      Comment

      Working...