Convert serial printed time format to hours and minutes separate

How to convert serial printed time just like format 07:30 etc into hour =07 and minute=30 plz help me

Other post/duplicate DELETED
Please do NOT cross post / duplicate as it wastes peoples time and efforts to have more than one post for a single topic.

Continued cross posting could result in a time out from the forum.

Could you also take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

Post your current code following the instructions in How to get the best out of this forum

strtok and atoi seem to be common solutions to this type of simple parsing.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.