Extracting string to different variables
#5

Quote:
Originally Posted by Maxandmov
Посмотреть сообщение
As for str... functions, you might want to do it as following:
Relocate the data in buffer variable, detect the slash, copy everything you had there in separate variable, delete the copied item with a slash from the variable, and so on with checking proper chars (be it / or : ). Must be enough, but it might not be as beautiful as sscanf variation of approach.
He must use sscanf as AdamsLT said ; it's better and faster. I didn't thought about it in first time.
Reply


Messages In This Thread
Extracting string to different variables - by Kampott - 21.03.2018, 20:17
Re: Extracting string to different variables - by Dayrion - 21.03.2018, 20:52
Re: Extracting string to different variables - by AdamsLT - 21.03.2018, 21:04
Re: Extracting string to different variables - by Maxandmov - 22.03.2018, 06:15
Re: Extracting string to different variables - by Dayrion - 22.03.2018, 09:37

Forum Jump:


Users browsing this thread: 1 Guest(s)