Annotation of coherent/d/usr/src/examples/sscanf.c, revision 1.1.1.1

1.1       root        1: #include <stdio.h>
                      2: 
                      3: main()
                      4: {
                      5:        char string[80];
                      6:        char s1[10], s2[20];
                      7: 
                      8:        sprintf(string, "1234567890abcdefghijABCDEFGHIJ");
                      9:        sscanf(string, "%9c", s1);
                     10:        sscanf(string, "%19c", s2);
                     11: 
                     12:        printf("\n%s is the string\n", string);
                     13:        printf("%s: first 9 characters in string\n", s1);
                     14:        printf("%s: first 19 characters in string\n", s2);
                     15: }
                     16: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.