Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-11

SScanf question

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Gabor Boros

Hi,

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

In this situation string1 is aaa. It is correct.

SScanf('123: bbb aaa :456','%d: %s :%d',,@string1,@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