Lines Matching defs:ncpfiles
350 char *ncpname, **ncpfiles = NULL;
354 ncpfiles = calloc(NWAM_MAX_NUM_OBJECTS, sizeof (char *));
355 if (ncpfiles == NULL)
376 if ((ncpfiles[*num_filesp] = malloc(filenamelen)) == NULL) {
380 (void) strlcpy(ncpfiles[*num_filesp], NWAM_CONF_DIR,
382 (void) strlcpy(ncpfiles[*num_filesp] + strlen(NWAM_CONF_DIR),
392 free(ncpfiles[i]);
393 free(ncpfiles);
395 *ncpfilesp = realloc(ncpfiles, sizeof (char *) * (*num_filesp));
421 char *cp, *foundobjname, **objnames = NULL, **ncpfiles = NULL;
464 if ((err = create_ncp_file_list(&ncpfiles, &num_files))
468 if ((err = nwam_value_create_string_array(ncpfiles, num_files,
478 if (ncpfiles != NULL) {
480 free(ncpfiles[j]);
481 free(ncpfiles);
509 if ((err = create_ncp_file_list(&ncpfiles, &num_files))
512 if (strcasecmp(ncpfiles[j], filename) == 0) {
513 fp = fopen(ncpfiles[j], "r");
517 ncpfiles[j],
524 free(ncpfiles[j]);
525 free(ncpfiles);