Lines Matching defs:subdirs
284 char **subdirs = NULL;
322 subdirs = malloc((i * 2 + 1) * sizeof(char *));
323 if (!subdirs) {
344 if (!(subdirs[i] = malloc(len))) {
346 free(subdirs[i]);
347 free(subdirs);
352 sprintf(subdirs[i], "%s%s%s/", *s, slash, osname);
355 subdirs[i] = strdup(*s);
364 subdirs[i] = NULL;
367 return (const char **)subdirs;
371 FreeSubdirs(const char **subdirs)
375 if (subdirs) {
376 for (s = subdirs; *s; s++)
378 free(subdirs);
441 const char **subdirs = NULL;
448 subdirs = InitSubdirs(subdirlist);
449 if (!subdirs)
452 for (s = subdirs; *s; s++) {
461 FreeSubdirs(subdirs);
474 const char **subdirs;
490 if (!(subdirs = InitSubdirs(subdirlist))) {
496 FreeSubdirs(subdirs);
501 for (s = subdirs; *s; s++) {
533 FreeSubdirs(subdirs);
542 FreeSubdirs(subdirs);
563 FreeSubdirs(subdirs);