You are not logged in.

#1 2008-08-28 14:33:30

Ferhiord
Member
From: Moscow, Russia
Registered: 2007-08-14
Posts: 39

help me to parse string... (C language)

How to parse string like "STR1=STR2" with sscanf into two strings?
I can get STR1 but not STR2 with "%[^=]"...

Please help.


Sorry, if my English is not very well.

Offline

#2 2008-08-28 14:43:51

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: help me to parse string... (C language)

why you want to read with sscanf?
use strtok to split a string in two strings


Give what you have. To someone, it may be better than you dare to think.

Offline

Board footer

Powered by FluxBB