sscanf.c

v22.2b14/testsuite/single/tests/efuns/sscanf.c · 267 B

From the archive beta.tar.gz

Download the archive   « Back to the archive contents

inherit "/inherit/tests";

void do_tests() {
    string s;
    
    ASSERT(catch(sscanf("you%", "%s%", s)));
    ASSERT(catch(sscanf("you%", "%su%", s)));
    sscanf("you%", "%s%%", s);
    ASSERT(s == "you");
    sscanf("you%", "%su%%", s);
    ASSERT(s == "yo");
}

Site Stats

Snippets: 1791
Codebases: 571