IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 11, 2012, 5:35:44 AM (14 years ago)
Author:
eugene
Message:

add tools for querying vector and buffer information

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/opihi/lib.shell/VectorOps.c

    r33313 r33476  
    324324  return (TRUE);
    325325}
     326
     327int ListVectorsToList (char *name) {
     328
     329  int i;
     330  char line[1024];
     331
     332  for (i = 0; i < Nvectors; i++) {
     333    sprintf (line, "%s:%d", name, i);
     334    set_str_variable (line, vectors[i][0].name);
     335  }
     336  sprintf (line, "%s:n", name);
     337  set_int_variable (line, Nvectors);
     338  return (Nvectors);
     339}
Note: See TracChangeset for help on using the changeset viewer.