Lines Matching refs:len
376 int buflen = MAXLEN, typelen = 0, len;
392 len = strlen(inBuf);
393 if (typelen + len + 1 > buflen) {
403 (void) strncpy(&types[typelen], inBuf, len+1);
404 typelen += len+1;
416 len = 0;
418 dir->types[i].type = &(dir->typeNameBuffer[len]);
426 len += strlen(dir->types[i].type) + 1;
440 int len;
451 len = strlen(dirName);
452 dir->filePrefix = strcpy((char *) MALLOC(len+2), dirName);
453 dir->filePrefix[len] = '/';
454 dir->filePrefix[len+1] = '\0';
460 len = strlen(prefix);
461 dir->filePrefix = (char *) strcpy((char *) MALLOC(len+2), prefix);
463 dir->filePrefix[len] = '/';
464 dir->filePrefix[len+1] = '\0';
471 len += strlen(inBuf);
472 dir->filePrefix = (char *) REALLOC(dir->filePrefix, len+2);
475 dir->filePrefix[len] = '/';
476 dir->filePrefix[len+1] = '\0';
532 int len;
539 len = strlen(inBuf);
540 if (strncmp(inBuf, &name[start], len) != 0) return 1;
541 start += len;
588 int len;
592 len = strlen(readbuf);
593 if (start + len + 1 > linebuflen) {
597 strncpy(inputline+start, readbuf, len+1);
599 if (inputline[start+len-1] != '\\') break;
601 start = start+len-1;
624 int len;
668 len = strlen(linein) + 1 + (addingPrefix ? prefixLen : 0);
670 if (namelen + len >= buflen) {
672 if (namelen + len > newsize) newsize = namelen + len;
682 len = strlen(linein);
683 (void) strncpy(&names[namelen], linein, len+1);
684 namelen += len+1;
691 len = strlen(sep+1);
692 (void) strncpy(&names[namelen], sep+1, len+1);
693 namelen += len+1;
708 len = 0;
710 type->names[i].name = &(type->nameBuffer[len]);
711 len += strlen(type->names[i].name) + 1;
712 type->names[i].file = &(type->nameBuffer[len]);
713 len += strlen(type->names[i].file) + 1;
817 static ResourceDirectory ReadAndStoreFile(dir, name, len, readFunc, data)
819 int len;
829 fullLen = len + strlen(name) + 1;
832 fullName[len] = '/';
833 (void) strcpy(fullName+len+1, name);
863 int len = strlen(dirName);
871 rd = ReadAndStoreFile(dirName, PSRES_NAME, len, readFunc, data);
884 (void) ReadAndStoreFile(dirName, d->d_name, len, readFunc, data);
938 int len;
946 len = strlen(pathChar);
947 if (len < MAXLEN) path = pathBuf;
948 else path = MALLOC(len+1);
983 int len;
992 len = strlen(pathChar);
993 if (len < MAXLEN) path = pathBuf;
994 else path = MALLOC(len+1);
1053 int i = 0, len = 0;
1058 len += strlen(*cp) + 1;
1064 resourceTypeBuffer = MALLOC(len);
1066 len = 0;
1071 (void) strcpy(resourceTypeBuffer+len, *cp);
1072 currentResourceTypes[i++] = resourceTypeBuffer + len;
1073 len += strlen(*cp) + 1;
1494 int len;
1540 len = strlen(linein) + (addingPrefix ? 0 : prefixLen) + 1;
1541 if (len > buflen) {
1543 names = (char *) MALLOC(len);
1547 len = strlen(linein);
1548 (void) strncpy(names, linein, len+1);
1550 namelen = len+1;
1558 len = strlen(sep+1);
1559 (void) strncpy(&names[namelen], sep+1, len+1);