IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19825


Ignore:
Timestamp:
Oct 2, 2008, 8:11:17 AM (18 years ago)
Author:
eugene
Message:

do not check for an argument in argv[0]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libohana/src/string.c

    r18428 r19825  
    190190  int i;
    191191
    192   for (i = 0; i < argc; i++) {
     192  for (i = 1; i < argc; i++) {
    193193    if (!strcmp(argv[i], arg))
    194194      return (i);
    195195  }
    196196 
    197   return ((int)NULL);
     197  return (0);
    198198}
    199199
     
    202202  int i;
    203203
    204   if ((N != (int)NULL) && (N != 0)) {
     204  if (N) {
    205205    (*argc)--;
    206206    for (i = N; i < *argc; i++) {
Note: See TracChangeset for help on using the changeset viewer.