Changeset 4188 for trunk/psphot/src/psUtils.c
- Timestamp:
- Jun 9, 2005, 6:28:24 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psUtils.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psUtils.c
r4129 r4188 1 1 # include "psphot.h" 2 3 static psHash *timers = NULL;4 2 5 3 // set actual region based on image parameters … … 21 19 } 22 20 21 static psHash *timers = NULL; 23 22 24 23 // start/restart a named timer … … 110 109 } 111 110 return (TRUE); 111 } 112 113 // find the location of the specified argument 114 int psArgumentGet (int argc, char **argv, char *arg) { 115 116 int i; 117 118 for (i = 0; i < argc; i++) { 119 if (!strcmp(argv[i], arg)) 120 return (i); 121 } 122 123 return ((int)NULL); 124 } 125 126 // remove the specified argument (by location) 127 int psArgumentRemove (int N, int *argc, char **argv) { 128 129 int i; 130 131 if ((N != (int)NULL) && (N != 0)) { 132 (*argc)--; 133 for (i = N; i < *argc; i++) { 134 argv[i] = argv[i+1]; 135 } 136 } 137 138 return (N); 112 139 } 113 140
Note:
See TracChangeset
for help on using the changeset viewer.
