- Timestamp:
- Jan 9, 2013, 1:19:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20121219/Ohana/src/opihi/cmd.data/spline_commands.c
r34584 r34898 126 126 } 127 127 128 int spline_rename (int argc, char **argv) { 129 130 Spline *spline; 131 132 if (argc != 3) { 133 gprint (GP_ERR, "USAGE: spline rename (spline) (newname)\n"); 134 return FALSE; 135 } 136 137 spline = FindSpline (argv[1]); 138 if (spline == NULL) { 139 gprint (GP_ERR, "spline %s not found\n", argv[1]); 140 return FALSE; 141 } 142 143 free (spline->name); 144 spline->name = strcreate (argv[2]); 145 return TRUE; 146 } 147 128 148 /* 129 149 int spline_listspline (int argc, char **argv) {
Note:
See TracChangeset
for help on using the changeset viewer.
