Annotation of researchv10dc/cmd/worm/oscsi/scsi/fixedstr.c, revision 1.1.1.1

1.1       root        1: #include       "../scsi.h"
                      2: 
                      3: void
                      4: fixedstr(uchar *src, int len, char *dest)
                      5: {
                      6:        uchar *s;
                      7: 
                      8:        while((*src == ' ') && (len > 0))
                      9:                src++, len--;
                     10:        for(s = src+len-1; s >= src; s--)
                     11:                if(*s != ' ')
                     12:                        break;
                     13:        memcpy(dest, (char *)src, len = s-src+1);
                     14:        dest[len] = 0;
                     15: }

unix.superglobalmegacorp.com

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