comparison th_args.c @ 11:707e35b03f89

Synced th-libs.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 22 Mar 2008 02:52:01 +0000
parents ecfa4e3597e3
children 323c98360d8b
comparison
equal deleted inserted replaced
10:53e127854dca 11:707e35b03f89
211 (void) argc; (void) argv; (void) newArgIndex; 211 (void) argc; (void) argv; (void) newArgIndex;
212 212
213 /* Long option */ 213 /* Long option */
214 for (optN = -1, optLen = i = 0; (i < optListN) && (optN < 0); i++) 214 for (optN = -1, optLen = i = 0; (i < optListN) && (optN < 0); i++)
215 if (optList[i].optLong) { 215 if (optList[i].optLong) {
216 optLen = th_strlen(optList[i].optLong); 216 optLen = strlen(optList[i].optLong);
217 if (th_strncmp(currArg, optList[i].optLong, optLen) == 0) 217 if (strncmp(currArg, optList[i].optLong, optLen) == 0)
218 optN = i; 218 optN = i;
219 } 219 }
220 220
221 /* Get possible option argument, if needed */ 221 /* Get possible option argument, if needed */
222 if (optN >= 0) { 222 if (optN >= 0) {