## Adding Files to a Project

If you have a small number of source files then it may be easiest to just supply their names to the analyzer using the wildcarding abilities of your operating system shell. In this example we will process all source files in the folder:

    undc -db myproject -add *.c.h

In some cases there may be too many file locations to use the -add technique. A common command line limitation is 255 characters. A directory with hundreds or thousands of files may easily exceed this limit. In this case, or when you want more fine-grained/repeatable control over what files are processed, you should create a “listfile”. This file must have a format of one filename per line:

    c:\myfiles\myproject\myproject.c
    c:\myfiles\myproject\support.c
    c:\myfiles\myproject\io.c
    c:\myfiles\myproject\myproject.h
    h:\shared\allprojects\file2.c
    h:\options\file3.c
    h:\options\file4.c
    h:\options\file5.c

is processed via the -add command line option:

    undc -db myproject -add @myfiles.lis

Note that there is no limit on the number of files listed in the list file.

Scientific Toolworks, Inc. http://www.scitools.com