Source and output

Update a Small Data Set

The UPDATE program is one of the sample applications included in the back of the SDAI spec. It modifies the simple STEP database created by create.c. Each time you run the program it will add 5 to the x coordinates of every "point" in the database.

The C program has been set up so that it can be compiled with either ANSI or K&R C compilers.

Build Instructions

  1. Run the create tutorial to set up the sample database and your environment settings.
  2. Compile the program and link against the SDAI and ROSE libraries.
       % cc -I$ROSE_INCLUDE update.c -L$ROSE_LIB -lsdai -lrose
    
  3. Run the program and look at the results with "rose cat" It is in the same file made by create.c
       % a.out
       % rose cat tutorial1