[fpc-pascal] SScanf question

Gabor Boros gaborboros at yahoo.com
Sun Nov 30 09:21:23 CET 2008


Hi,

SScanf('123: aaa :456','%d: %s :%d',[@integer1, at string1, at integer2]);

In this situation string1 is aaa. It is correct.

SScanf('123: bbb aaa :456','%d: %s :%d',[@integer1, at string1, at integer2]);

In this situation string1 is bbb. But I need the whole string(bbb aaa). 
And I don't know how many piece contain the string. In example: 'Mr. aaa 
bbb' or 'Mr. aaa von bbb'. Can SScanf return the whole string?

Gabor




More information about the fpc-pascal mailing list