GSoC/GCI Archive
Google Code-in 2012 BRL-CAD

Make tables.c not call system("cat ...")

completed by: javamonn

mentors: Sean

BRL-CAD's geometry editor (MGED) provides hundreds of functions that users can call on the command line. One of our oldest commands writes data out to text files and calls the unix "cat" command to append output to a file ... That's really bad.

This task involves replacing the three calls to system() with a call to appropriate file I/O calls or any other similar mechanism.

Code:

  • src/libged/tables.c