annotate libsrc/read_file_names.h @ 2656:946695de0dca

EZ minc test implimentation
author Vladimir S. FONOV <vladimir.fonov@gmail.com>
date Fri, 23 Mar 2012 16:41:29 -0400
parents 4b26fb8b776c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2545
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
1
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
2
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
3 /* ----------------------------- MNI Header -----------------------------------
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
4 @NAME : read_file_names
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
5 @INPUT : filelist - name of file from which to read names
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
6 @OUTPUT : num_files - number of files read in
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
7 @RETURNS : Pointer to a NULL-terminated array of file names
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
8 @DESCRIPTION: Reads in a list of file names from file filelist or stdin if
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
9 "-" is specified. Returns NULL if an error occurs. If
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
10 no error occurs, then a pointer to an empty array is
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
11 returned and num_files is zero.
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
12 @METHOD :
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
13 @GLOBALS :
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
14 @CALLS :
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
15 @CREATED : March 8, 1995 (Peter Neelin)
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
16 @MODIFIED :
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
17 ---------------------------------------------------------------------------- */
4b26fb8b776c * added a patch from Steve Robbins removing references to PATH_MAX
Andrew L Janke <a.janke@gmail.com>
parents:
diff changeset
18 char **read_file_names(char *filelist, int *num_files);