Annotation of 43BSDReno/contrib/isode-beta/doc/manual/grind4-8b.py, revision 1.1.1.1

1.1       root        1: ...
                      2: 
                      3: Date ::=
                      4:        [APPLICATION 3]
                      5:            IMPLICIT IA5String -- YYYYMMDD --
                      6:            [[s Date]]
                      7:            %{
                      8:                int year, month, day;
                      9:                static char buffer[BUFSIZ];
                     10: 
                     11:                if (sscanf (Date, "%4d%2d%2d", &year, &month, &day) != 3
                     12:                        || year < 1900 || month < 1 || month > 12
                     13:                        || day < 1 || day > 31)
                     14:                    adios (NULLCP, "bad date format: %s", Date);
                     15:                (void) sprintf (buffer, "%02d %s %4d", day,
                     16:                            months[month - 1], year);
                     17:                Date = buffer;
                     18:            %}
                     19: 
                     20: END
                     21: 
                     22: ...

unix.superglobalmegacorp.com

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